Go to Stores -> Configuration -> Advanced -> System
Expand "Media Gallery Renditions" fieldset
Expected result (*)
"Enable Image Optimization" select with "Yes/No" options is added as the first field of "Media Gallery Image Optimization" fieldset
The value is stored in the system/media_gallery_renditions/enabled path and is 1 by default (app/code/Magento/MediaGalleryRenditions/etc/config.xml)
If renditions are disabled - renditions should not be generated during insertion of the image and during the width/height change. (add condition to UpdateRenditionsOnConfigChange and SetRenditionPath plugins)
When renditions are enabled - all renditions should be regenerated (\Magento\MediaGalleryRenditions\Plugin\UpdateRenditionsOnConfigChange)
Steps to reproduce (*)
Expected result (*)
"Enable Image Optimization" select with "Yes/No" options is added as the first field of "Media Gallery Image Optimization" fieldset The value is stored in the
system/media_gallery_renditions/enabled
path and is1
by default (app/code/Magento/MediaGalleryRenditions/etc/config.xml
) If renditions are disabled - renditions should not be generated during insertion of the image and during the width/height change. (add condition toUpdateRenditionsOnConfigChange
andSetRenditionPath
plugins) When renditions are enabled - all renditions should be regenerated (\Magento\MediaGalleryRenditions\Plugin\UpdateRenditionsOnConfigChange
)The screenshot includes also the changes done in https://github.com/magento/magento2/pull/30044