magento / adobe-stock-integration

Magento Adobe Stock integration Community Project.
Open Software License 3.0
60 stars 92 forks source link

Add ability to disable renditions functionality to stores configuration #1833

Closed sivaschenko closed 4 years ago

sivaschenko commented 4 years ago

Steps to reproduce (*)

  1. Go to Stores -> Configuration -> Advanced -> System
  2. 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)

image

The screenshot includes also the changes done in https://github.com/magento/magento2/pull/30044

m2-assistant[bot] commented 4 years ago

Hi @sivaschenko. Thank you for your report. To help us process this issue please make sure that you provided sufficient information.

Please, add a comment to assign the issue: @magento I am working on this