GrandyB / SheetsIO

Small configurable Java app that pulls data from a Google Spreadsheet (using v4 api) and writes to files and a local webserver.
GNU Lesser General Public License v3.0
20 stars 3 forks source link

Photos exported from Illustrator wont work? #60

Open IronDrachen opened 13 hours ago

IronDrachen commented 13 hours ago

Hello, Is there a size limit or specific formatting rules for PNG/JPG files?

I'm able to attach photos I find online, but I cant seem to get the files I'm exporting as PNG or JPEG with Adobe Illustrator to work.

I get this error: Screenshot 2024-09-28 064928

Attached is a link to the logs, the photos I'm trying to use, and the illustrator files I'm exporting from.

https://drive.google.com/drive/folders/1YAYe7-wldWcfi4O7HDDQbVepVH2ervoP?usp=drive_link

https://drive.google.com/drive/folders/1doKkXbEysbviJ-_MWkJV0Xn2VijSzoXp?usp=drive_link

https://drive.google.com/drive/folders/1YAkZQl-EDmQo5aQoEVhsq7iBODmPB2Cb?usp=drive_link

https://drive.google.com/file/d/1kqf4i-nfOLCYAS72Go95_bnchc_U3QVR/view?usp=drive_link

Thanks for any help!

GrandyB commented 7 hours ago

Hello, thanks for creating a ticket! I have downloaded your 13.png into a local folder, referred to it similarly in my sheet file://D:/13.png with config entry { "cell": "A3", "name": "test2", "fileExtension": "png" } and had no error.

I also don't see an error in your log file, just the following: DEBUG application.services.FileIO - Treating file://C:/test2/13%2Epng as a local image url ...which is the same debug output as mine has.

Unsure what to suggest except maybe sharing your json file? as I'm currently unable to replicate.

EDIT: is that a 16000 by 9000 image!? holy moly what is your use case here? but in theory if file size is kept down it should be fine, seems to be small at least

IronDrachen commented 15 minutes ago

Wow I have no idea why its that big, it should be 1920x1080. Let me check my output settings and try again.

I'll comment back when I've tried the smaller photos. Thanks so much for answering back