• Resolved gogogo5

    (@gogogo5)


    Hello,

    I’ve scanned previous threads to see if this has been asked but could not find anything.

    After the EWWW plug-in has been installed, when a jpg is uploaded to the media library, does EWWW prevent WordPress from applying it’s own default compression level of 82% and then apply EWWW optimisation? Or does EWWW optimise images after WordPress compresses images?

    In other words, is this setting in a themes functions.php ignored when EWWW is installed?

    add_filter(‘jpeg_quality’, function($arg){return 82;});

    Thanks,
    David

    https://ww.wp.xz.cn/plugins/ewww-image-optimizer/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Shane Bishop

    (@nosilver4u)

    That function/filter will not be ignored when EWWW is active.

    FYI, WP does not compress your original, it only applies that compression quality to the resizes.

    Thread Starter gogogo5

    (@gogogo5)

    Thanks for your reply. So if the function/filter will not be ignored, then does WP compress the resizes first and then EWWW optimises afterwards according to lossy/lossless settings?

    Do you recommend changing the add_filter setting if EWWW is installed or leave at default?

    Thanks,
    David

    Plugin Author Shane Bishop

    (@nosilver4u)

    As long as the images are acceptable at quality 82, then I wouldn’t worry about it. The WP devs did extensive testing before they chose 82 using actual data, so it should be pretty good. If you’re using lossy, you could bump it up a bit (like 90 or so), and then let EWWW take care of achieving the optimal compression ratios.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘EWWW and WordPress compression’ is closed to new replies.