Skip to content

Commit

Permalink
magento/adobe-stock-integration#1833: Add ability to disable renditio…
Browse files Browse the repository at this point in the history
…ns functionality to stores configuration - added enable disable renditions to stores configuration
  • Loading branch information
joweecaquicla committed Sep 15, 2020
1 parent b9c13fd commit 356ef14
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,15 @@
<section id="system">
<group id="media_gallery_renditions" translate="label" type="text" sortOrder="1010" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Media Gallery Renditions</label>
<field id="width" translate="label" type="text" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<field id="enabled" translate="label" type="select" sortOrder="10" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Enable Image Optimization</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
</field>
<field id="width" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Max Width</label>
<validate>validate-zero-or-greater validate-digits</validate>
</field>
<field id="height" translate="label" type="text" sortOrder="20" showInDefault="1" showInWebsite="0" showInStore="0">
<field id="height" translate="label" type="text" sortOrder="30" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Max Height</label>
<validate>validate-zero-or-greater validate-digits</validate>
</field>
Expand Down
1 change: 1 addition & 0 deletions app/code/Magento/MediaGalleryRenditions/etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<default>
<system>
<media_gallery_renditions>
<enabled>1</enabled>
<width>1000</width>
<height>1000</height>
</media_gallery_renditions>
Expand Down

0 comments on commit 356ef14

Please sign in to comment.