Bulk Compression is stuck
-
it seems that bulk compression doesnt work properly in 1.4.5 .
it just freezes the tab, blocks my cpu but doesnt compress.
-
Hey @reventor !
Sorry to hear that. Can you provide a screenshot of your browser console while you’re doing the bulk compression?i would like to but it seems that the compression process completely blocks/crashes the tab and there is no console information. very strange.
here you can see the problem as a video recording: https://cloud.reventor.eu/s/JCnWGSaZZPD78Rr
never had such a behavior before. tried it with a completely fresh chrome install too. same behavior.
-
This reply was modified 1 year, 6 months ago by
REVENTOR. Reason: updated link
Unfortunately I cannot open that video – its says that page is not found. Can you try some other hosting for that video recording?
sorry, updated the link.
Thank you for such a detailed video, very appreciated!
Compressing PNG images indeed causes issues, especially when the image is too large. And since all the compressing happening locally (means in your browser) it may stuck your browser’s tab.
I will try to fix that in the next plugin update (maybe terminate process if taking too long or something like that). Meanwhile, just for the test purpose, can you try to optimize that image using https://squoosh.app/ site?
Also, does it happen only with that specific image or with some other images on your site as well?it seems to be a problem with a few large pngs. i tested them on the https://squoosh.app/ but there they worked just fine, both in as browserpng (+32% size) and mozjpeg (-47% size)
For the Squeeze plugin I used the OxiPNG method, please test with that one.
Also, can you say which resolution your image has and how big is its size?i guess now we found the problem: OxiPNG. it works also really hard on the squoosh.app, takes about 30 seconds to process this image.
5000x4000px, 1,59MB with 21% compression to 1.25MB
I tried also https://caesium.app/ (for comparison) and it took only 5 seconds and compressed to 735 kB (-54%). The desktop app can do it in just 1s, so i guess a browser can not multithread outside of a tab.
I guess we can close the case, you did a great job with the WP Plugin, its just that the PNG compression algorithm seems to have a problem with high res PNGs.
Thanks for you your feedback and cooperation, very appreciate it!
I will test more various PNGs, and find a solution to prevent browser from stuck.Hey @reventor !
I’ve tried to solve the problem with image stuck, so now there’s a timeout for each image compression.It should prevent bulk compression from stuck.
-
This reply was modified 1 year, 6 months ago by
The topic ‘Bulk Compression is stuck’ is closed to new replies.