magestyapps / module-web-images

magestyapps/module-web-images

Upload SVG and WebP images in Magento 2

magento2-module Compatibility: 2.4.7-2.4.9 Code Quality: Fail Tests: N/A Security: Pass OSL-3.0, AFL-3.0

Packagist Packagist

Upload SVG and WebP images in Magento 2

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

  • Page Builder editor
  • Wysiwyg editor
  • Theme logo and favicon
  • Product media gallery
  • Attribute option swatch images
  • Category image
  • Custom image uploader fields

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.

Magento Version Compatibility

Supported Magento Version Compatible Module Version
2.4.7 1.2.*
2.4.6 1.1.*
2.4.5 1.1.*
2.4.4 or older Not supported

Installation

Using Composer (recommended)

  1. Go to your Magento root folder

  2. Download the extension using composer:

    For Magento 2.4.7 or newer:

    composer require magestyapps/module-web-images
    

    For Magento 2.4.5 or 2.4.6:

    composer require magestyapps/module-web-images:^1.1
    
  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.

No changelog yet

The vendor hasn't published a changelog. Tagged releases appear in the Versions tab.

Versions
Version Stability QA Status Compatibility Released
1.2.1 stable Fail Magento 2.4.7-2.4.9 Details 2026-01-22 15:56:57
1.2.0 stable Not tested Not yet tested Details 2025-03-08 11:23:04
1.1.13 stable Not tested Not yet tested Details 2025-03-08 11:21:28
1.1.12 stable Not tested Not yet tested Details 2025-02-11 17:34:54
1.1.10 stable Not tested Not yet tested Details 2025-02-11 14:57:15
1.1.9 stable Not tested Not yet tested Details 2024-03-20 09:34:02
1.1.8 stable Not tested Not yet tested Details 2024-03-16 15:32:57
1.1.7 stable Not tested Not yet tested Details 2022-12-28 09:06:56
1.1.6 stable Not tested Not yet tested Details 2022-04-07 07:32:58
1.1.4 stable Not tested Not yet tested Details 2021-12-02 14:20:39
1.1.3 stable Not tested Not yet tested Details 2021-11-29 14:02:46
1.1.2 stable Not tested Not yet tested Details 2021-11-05 09:33:22
1.1.1 stable Not tested Not yet tested Details 2021-10-06 14:44:56
1.1.0 stable Not tested Not yet tested Details 2021-10-06 12:31:18
1.0.3 stable Not tested Not yet tested Details 2021-05-27 09:06:49
1.0.2 stable Not tested Not yet tested Details 2021-05-15 08:07:23
1.0.1 stable Not tested Not yet tested Details 2021-03-19 11:18:48

Requires 2

Package Constraint
php >=7.4
magento/module-backend >=102.0.7

Compatibility

Each Magento release line is installed on its supported PHP versions, then the module is built (DI compilation + static-content deploy) and its unit and integration suites are run. The matrix shows the lines and PHP versions the module is confirmed to install and run on. Code-quality results further down (phpstan, phpcs, …) are reported separately and never affect compatibility.

Compatibility matrix (Magento × PHP)
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 Pass Pass
2.4.8 Pass Pass
2.4.9 Pass Pass

Code Quality

Advisory checks against the module's source. Static analysis runs once across the whole module; PHPStan re-runs per Magento + PHP version because resolvable symbols differ between releases. These NEVER affect the Compatibility badge — a phpcs finding can't make a module incompatible.

Static analysis

Coding standards (phpcs), mess detection (phpmd), copy-pasted code (cpd), PHP cross-version compatibility, composer.json validity. Each runs once for the whole module.

Static analysis results
Tool Status Findings Summary
PHPCS Warning 141 141 warnings (ruleset: Magento2) — 7 auto-fixable with phpcbf
PHPMD Fail 26 26 rule violations (MissingImport:13, UnusedFormalParameter:8, UndefinedVariable:2, ExcessiveClassLength:1, TooManyMethods:1)
Cpd Pass 0
Composer validate Info 2 valid; 2 advisory notes (composer validate --strict)

PHPStan

Type-checks the module's PHP against a real Magento install at the configured gate level. Re-runs per Magento and PHP version because resolvable symbols differ between releases. Cell → details modal.

PHPStan results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 21 21
2.4.8 21 21
2.4.9 21 32

Tests

Unit and integration suites, run for each applicable Magento and PHP version. A test failure speaks to the module's behaviour, not its compatibility with a Magento line, so it is reported here separately and never reddens the compatibility matrix.

Unit tests

Unit tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Integration tests

Integration tests results by Magento and PHP version
Magento PHP 8.2 PHP 8.3 PHP 8.4 PHP 8.5
2.4.7 N/A N/A
2.4.8 N/A N/A
2.4.9 N/A N/A

Security

Security checks run directly against the module: an audit of its declared dependencies for known vulnerabilities (composer audit) and a scan of its source for malware and web-shell signatures. Each runs once. A malware detection fails the version outright.

Security results
Tool Status Findings Summary
Composer audit Pass 0
Malware scan Pass 0
License
OSL-3.0, AFL-3.0
Make it pay

Turn an existing module into recurring revenue.

If you already maintain a Magento 2 module on GitHub or GitLab, listing it on Packagento takes about five minutes. We mirror your tags, handle distribution signing, and route paid licenses through Stripe Connect, so you can keep shipping the way you already do.