User tests: Successful: Unsuccessful:
It is possible to assign SVG files to banners, however, the module does not reflect it, only allowing image files.
Notes:
An isImage function was created specifically for Banners. However, it should not be necessary to have such a function since the MediaHelper offers it as well. To ensure Banners support the same image file extensions as the rest of the core, I opted for the use of the MediaHelper instead.
SVG files act a bit differently than image files.
When forcing a width and a height on a image, the image will 'follow' those dimensions.
A SVG file will be scaled to fit its defined viewport. So it won't 'obey' a specific height if you set one for the banner.
Depending on your situation, you may have to restrict the SVG's height with max-height.
Use of SVGs in mod_banners is safe, the SVG files are checked in MediaHelper::getMimeType.
Create banners in the administration console. Some use standard image files, some use SVG files.
Only banners with standard image files are shown.
Banners with standard image files and SVG files are shown.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org: link (about the deprecation)
No documentation changes for manual.joomla.org needed
Category | ⇒ | Unit Tests Repository Administration com_admin SQL |
Status | New | ⇒ | Pending |
Category | Unit Tests Repository Administration com_admin SQL | ⇒ | Front End com_banners Modules |
I have tested this item ✅ successfully on 611d72e
This pull request has been automatically rebased to 5.1-dev.
Status | Pending | ⇒ | Ready to Commit |
Labels |
Added:
PR-5.1-dev
|
RTC
Labels |
Added:
Feature
?
|
Labels |
Added:
?
Removed: ? |
Labels |
Added:
?
Removed: ? |
I have tested this item ✅ successfully on 9755714
Thanks!
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-11-02 21:59:43 |
Closed_By | ⇒ | Razzo1987 | |
Labels |
Added:
?
Removed: ? |
I have tested this item ✅ successfully on 611d72e
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41854.