• Resolved Alison

    (@zirafa)


    Hello! Thanks for the great plugin. I’m also using a separate plugin to compress/optimize my images, and there’s a compatibility issue. Since the default image quality in your plugin is hard coded as a constant at 82, regenerating my thumbnails results in file sizes large than the ones generated when the image is initially compressed. It would be really helpful if you could build in an option to set a custom default. Otherwise it seems my only option is to edit the plugin file directly, which is obviously not a great solution.

    Thanks,

    Alison

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hi Alison,
    I will look into this and update you when the option is available in the plugin.

    Regards,
    Iulia

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hi Alison,

    I could replicate the issue myself, this seems to be related to some core changes related to image processing, and I was not aware of the impact, so thanks for submitting this issue.

    I took a look at the core changes and as far as I could see, there is no hook available anymore for dealing with the image quality on upload. Currently, the quality always falls back to the default values set by core: 82 for jpeg, and 64 for webp. The constant you see in my code (and what you mentioned you want to override) is correlated to the core expected default quality, so it would not help if you change it in the code either, as the rest of core processing does not pick that up on image upload.

    I made some changes in the code that will overcome this change, so you do not need to change/set another default value, it’s enough to set the image size quality like previously, and it will work on upload too. You still can manually update each sub-size for any of the attachments.
    https://imgur.com/tI8xST1

    I will push a new release soon. Once that is available, please upgrade, test, and let me know if this is working for you.

    Regards,
    Iulia

    Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hello,

    I haven’t heard back from you in a while so I will mark this as resolved. You can start a new thread if you have other questions.

    Regards,
    Iulia

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

The topic ‘Request: option to set Default Quality’ is closed to new replies.