• reventor

    (@reventor)


    it seems that bulk compression doesnt work properly in 1.4.5?.

    it just freezes the tab, blocks my cpu but doesnt compress.

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Bogdan Bendziukov

    (@barb0ss)

    Hey @reventor !
    Sorry to hear that. Can you provide a screenshot of your browser console while you’re doing the bulk compression?

    Thread Starter reventor

    (@reventor)

    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 2 months ago by reventor. Reason: updated link
    Plugin Author Bogdan Bendziukov

    (@barb0ss)

    Unfortunately I cannot open that video – its says that page is not found. Can you try some other hosting for that video recording?

    Thread Starter reventor

    (@reventor)

    sorry, updated the link.

    Plugin Author Bogdan Bendziukov

    (@barb0ss)

    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?

    Thread Starter reventor

    (@reventor)

    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)

    Plugin Author Bogdan Bendziukov

    (@barb0ss)

    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?

    Thread Starter reventor

    (@reventor)

    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.

    Plugin Author Bogdan Bendziukov

    (@barb0ss)

    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.

    Plugin Author Bogdan Bendziukov

    (@barb0ss)

    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.

Viewing 10 replies - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.