DWilliames / google-sheets-sync-figma

82 stars 8 forks source link

Error fetching big images from url (I've found a workaround, still needing a fix) #88

Open newoldschool opened 2 years ago

newoldschool commented 2 years ago

Describe the bug I receive an error fetching images bigger than 4100px on the larger size.

To Reproduce Use the link of an image with 4500px width. For example this https://www.dropbox.com/s/s06ytbvrqhe0i3t/test-error-4100px.jpg?raw=1 Press fetch. You will receive an error. Edit the image and change the size to 4000px width and fetch again, now it will work. For example this https://www.dropbox.com/s/6k0uexrbifliwtp/test-good-4000px.jpg?raw=1

Expected behavior To be able to fetch big images. Today an image of 4500px width, or even 5000 is not that unusual.

Additional context I tested if there is any difference using a 72dpi or a 300dpi images and it doesn´t seems to affect anything, the problem in my case seems to be because of the pixel size. Every time I have an error fetch I can consistently fix it by editing the imagen and reduce it to 400px width (I work with scans, it's normal for me to receive images in my dropbox and google drive with a width of 5000 or 6000 or 8000px)