Hi @alduinwf
Thank you for your suggestion, we really appreciate it!
Indeed, when adding a new thumbnail size unfortunately there is no quick way to re-optimize the images and so the new thumbnail sizes to be optimized as well.
However, I will mention how you could do this through Media Library(List View).
First, you need to make sure that the new thumbnail size is added to the “Files optimization” section through Settings > Imagify and that it is also selected so it can be optimized.
Then you could try to restore your images in your Media Library (List View) to original, and then re-optimize them so the new thumbnail sizes are optimized as well. You can test this for one image and if it works correctly you can try it for the rest of your images too.
You can follow the steps outlined below to restore all images to original:
Start by going to your Media Library (list view) and click in the top right of the page where it says “Screen Options.” Then enter a larger number for “Number of files per page” and click “Apply” (this is optional, but can make the process faster).
Then select all images you want to restore to original by checking the boxes next to them. If you want to select all images, just click the one box by the “File” heading. Then select the “Restore Original” bulk action and click “Apply”.
After the images are restored to the original version they can be re-optimized in bulk again.
Let me know if you need further assistance. I’ll be happy to help.
Best Regards,
Ioanna
Hi @wp_media,
thank you for your reply :–)
Indeed, when adding a new thumbnail size unfortunately there is no quick way to re-optimize the images and so the new thumbnail sizes to be optimized as well.
Well – there is not even an easy way to *create* the new thumbnails sizes for existing media. That is my first problem.
Also, I was assuming the bulk optimization _does_ optimize thumbs if they are not already?
So what I did, and let me tell, it’s painful, I tried to recreate thumbnails with this plugin:
https://ww.wp.xz.cn/plugins/regenerate-thumbnails/
And well. I disabled Imagify because each image it did, it sent to Imagify as well, causing a major queue jam, and slowed down the process quite a bit.
Also, the function to skip already existing and created thumbs does not seem to work, so it recreates ALL thumbs, so all of them have to be re-optimized.
And to add insult to injury, it is kind of unstable, and has no resume function.
Well that was “fun”, doing it like 3 or 4 times over the weekend 😀
And this is where my proposal comes from. Like Imagify could re-create thumbs, that do not exist, and optimize them once it’s at it. So we would not need the plugin mentioned above.
And please forgive me, but while I really appreciate your suggestion, I’m afraid it’s not viable with a 5-figure number of images in the media library. 🙁
Hey @alduinwf
Marko from Imagify is here.
I am jumping in to propose potentially workable solution for you. When you create new thumbnail size (indeed, we will probably not implement this feature within Imagify), you can use Regenerate thumbnails plugin, which will generate the new size for all existing images. At the same time, Imagify will compress these new thumbnails as they are created by Regenerate Thumbnails Plugin.
You can check how it’s handled in the code in our GitHub repository.
This should be the quickest way. Even if it would take some time for this number of images, it is the most efficient one and nothing would change in terms of performance even if we implement that feature.
Hope this helps. I am happy to hear your opinion on that.
Best Regards
Marko
Hello Marko,
thank you for your reply. That indeed sounds good!
When I am again in the situation of having to generate new crops, I’ll give that a shot.
Best,
Alduin
Hey Alduin,
Thanks for letting us know. We are ready to help you in case of any issues with that or some other thing.
Cheers,
Marko