marlokessler / strapi-plugin-image-optimizer

Optimize your images for desktop, tablet and mobile and different image formats.
MIT License
14 stars 10 forks source link

Image optimization on already existing images in strapi #24

Open webdevelukas opened 1 year ago

webdevelukas commented 1 year ago

Hey, I haven't tested the plugin yet, but it looks quite promising. Thanks for sharing it with us. 😊

I wonder if there is a way to run the image optimization on the already exisiting images in strapi? Would be quite an effort to delete and add them again.

Thanks in advance✌️

marlokessler commented 1 year ago

Hi @webdevelukas, thank you for your message, I'm glad that you like the plugin. Currently, optimizing existing images is not possible yet, nevertheless you are welcome to contribute, if you'd like. I'll leave this issue open as feature request.

webdevelukas commented 1 year ago

Hey @marlokessler thanks for your quick reply. One more question regarding this issue. The image optimization is currently only triggered if a new image is uploaded, right? If I edit an image, it is not triggered again?

marlokessler commented 1 year ago

The extension overrides the Strapi image-manipulationservice of the default Strapi upload plugin. Thus, images are optimized always when this service is used. I'm not sure whether this is also on image manipulation. Hope this helps.