0

MagestyApps/module-web-images https://github.com/MagestyApps/module-web-images module Upload SVG and WebP images in conflict System configuration pdf disallowed facing issue.

1 Answer 1

0

app/code/MagestyApps/WebImages/etc/config.xml

<?xml version="1.0"?>
<!--
 /**
  * Copyright © 2021 MagestyApps. All rights reserved.
  * See LICENSE.txt for license details.
  */
  -->
 <config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Store:etc/config.xsd">
<default>
    <magestyapps_webimages>
        <extensions>
            <vector>
                <svg>svg</svg>
                <svg_xml>svg+xml</svg_xml>
            </vector>
            <web_image>
                <webp>webp</webp>
                <pdf>pdf</pdf>
            </web_image>
        </extensions>
    </magestyapps_webimages>
    <dev>
        <image>
            <adapters>
                <GD2>
                    <class>MagestyApps\WebImages\Model\Image\Adapter\Gd2Rewrite</class>
                </GD2>
            </adapters>
        </image>
    </dev>
</default>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.