yuanqing / figma-plugins

:fire: Monorepo for my Figma plugins
https://figma.com/@yuanqing
MIT License
239 stars 32 forks source link

Insert Big Image: Many images won't load / image thumbnails won't show up in Figma design canvas #43

Open dennisreimers opened 1 year ago

dennisreimers commented 1 year ago

Hey there,

I am using the "Insert Big Image" plugin on a regular basis and it really helps to avoid Figmas native downsizing when images exceed 4096px. So firstly, thank you for creating this useful plugin! :) Since roughly one week I was experiencing the following issues. When I imported ~100 images to the Figma design file and reloaded / reopened the file, many images won't simply show up again. Even after waiting quite a while (of course loading times increase with many imported images and many layers). The image layers simply stay invisible but can be individually and manually triggered with hiding and showing the image fill of the layer.

I already contacted Figma support and this they could improve the behavior by running repair tools. This is their response:

[...] it seems that an issue may have occurred with thumbnails not being stored as expected for these images. This may sometimes occur if a third party plugin has previously manipulated the images.

For your reference, we have seen cases of users reporting this type of issue with other plugins that also downsize or manipulate images. However, as most plugins are developed and maintained by our community our team is unfortunately not equipped to troubleshoot or resolve what change a plugin may be making to cause images to end up in this state.

Any ideas and insights on how to resolve this issue? Maybe there's a compatibility issue here on Figma's end since the plugin did not update since 1 year. Looking forward for any solutions as I'd really like to continue using this plugin.

Thanks!

yuanqing commented 1 year ago

Thanks for the detailed report!

Not sure if this is something that I can fix on my side. My best guess of what happened here is that the images weren’t saved in time by Figma before the file was closed. I think this can happen when a large number of images – eg. ~100 images – are inserted all at once

Unfortunately, I’m not able to invest time to debug what is ultimately a free plugin. Having said that, happy to review any pull request if you’re keen to investigate and put together a fix