Instagram

About Me

Photo Profile
Meetanshi Architecture Designer

Meetanshi is found based on providing the best Magento Extensions and Customized eCommerce Business Solutions perfected to the users’ needs. Our Happy users make us Happy. Complete satisfaction to our clients is what drives and motivates us to work hard. Read More

Monday, November 28, 2022

How to Upload SVG Image in Magento 2 Custom Module

 JPG and PNG image uploads are by default supported by Magento 2. However, it does not allow users to upload SVG, PDF, or HTML files.



However, a store owner frequently has to upload vector images both in the frontend and the backend. A custom module can be used to upload an SVG file.


The store owner might desire to upload SVG images because of its several advantages, including:

  • SVG images maintain the same quality across all screen sizes and resolutions since they are resolution-independent.

  • When compared to other picture kinds, the SVG image may produce a lesser file size.

  • While some screens may cause a JPG image to appear fuzzy, every screen displays an SVG image in good quality.

  • Using an SVG image avoids the requirement to make an HTTP request to load an image file. As a result, a page loads faster because there is no file to download.


To maximize these advantages, explore the programmatic approach to upload SVG image in a Magento 2 custom module.


For a pragmatic solution, visit https://meetanshi.com/blog/upload-svg-image-in-magento-2-custom-module/


No comments:
Write comments


Get more of our update !