Giter VIP home page Giter VIP logo

module-web-images's Introduction

Upload SVG and WebP images in Magento 2

This extension for Magento 2 allows uploading SVG and WebP images in the following sections:

  • wysiwyg editor in static blocks and pages
  • theme logo and favicon
  • wysiwyg editor on product and category edit pages (description, summary, etc.)
  • product media gallery
  • category image upload

IMPORTANT: if you need to upload any other image format or you need to upload it in any other Magento 2 area - please just drop us a line at [email protected] and we will update the extension

IMPORTANT: if you like the extension, could you please add a star to this GitHub repository in the top right corner. This is really important for us. Thanks.

Installation

Using Composer (recommended)

  1. Go to your Magento root folder

  2. Download the extension using composer:

    composer require magestyapps/module-web-images
    
  3. Run setup commands:

    php bin/magento setup:upgrade;
    php bin/magento setup:di:compile;
    php bin/magento setup:static-content:deploy -f;
    

Manually

  1. Go to your Magento root folder:

    cd <magento_root>
    
  2. Copy extension files to app/code/MagestyApps/WebImages folder:

    git clone https://github.com/MagestyApps/module-web-images.git app/code/MagestyApps/WebImages
    

    NOTE: alternatively, you can manually create the folder and copy the extension files there.

  3. Run setup commands:

    php bin/magento setup:upgrade;
    php bin/magento setup:di:compile;
    php bin/magento setup:static-content:deploy -f;
    

Possible issues

Problem: An image gets uploaded to the server but not accessible in browser.

Solution: Most likely, this is related to your nginx/apache restrictions. Please, make sure that the requested image extension is allowed by the web server configuration.

Other Extensions

You can find more useful extensions for Magento 2 by visiting MagestyApps Official Website ```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.