PR-5.4-dev Pending

User tests: Successful: Unsuccessful:

avatar artur-stepien
artur-stepien
4 Jun 2026

This adds SVG to image extensions list used in \Joomla\CMS\Helper\MediaHelper::isImage. Without this you can select SVG as your banner image but it will not show up in mod_banners

  • I read the Generative AI policy and my contribution is either not created with the help of AI or is compatible with the policy and GNU/GPL 2 or later.

Summary of Changes

Treat SVG files as images.

Testing Instructions

  • Create a banner with SVG as image.
  • Add a mod_banners module to your website and make it display your banners

Actual result BEFORE applying this Pull Request

  • A banner with SVG image not showing up

Expected result AFTER applying this Pull Request

  • A banner with SVG image showing up

Link to documentations

Please select:

  • Documentation link for guide.joomla.org:

  • No documentation changes for guide.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

avatar artur-stepien artur-stepien - open - 4 Jun 2026
avatar artur-stepien artur-stepien - change - 4 Jun 2026
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Jun 2026
Category Libraries
avatar richard67 richard67 - change - 5 Jun 2026
Title
Add missing SVG to images extensions
[5.4] Add missing SVG to images extensions
avatar richard67 richard67 - edited - 5 Jun 2026
avatar chmst
chmst - comment - 7 Jun 2026
avatar brianteeman
brianteeman - comment - 7 Jun 2026

beat me to it @chmst

avatar artur-stepien
artur-stepien - comment - 7 Jun 2026

Need to check the reason why my SVG wasn't detected as SVG. As I can see in 5.4-dev branch the mod_banners should checks for image type in two methods. The one I changed and checking mime type.

avatar artur-stepien artur-stepien - change - 15 Jun 2026
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2026-06-15 15:30:11
Closed_By artur-stepien
Labels Added: PR-5.4-dev
avatar artur-stepien artur-stepien - close - 15 Jun 2026

Add a Comment

Login with GitHub to post a comment