User tests: Successful: Unsuccessful:
Allow media manager to have AVIF files uploaded and rendered
AVIF is an alternative to webp in some circumstances (see https://www.smashingmagazine.com/2021/09/modern-image-formats-avif-webp/ for more info).
I've deliberately chosen to not add this to a SQL Update script so there are no security implications for sites who may have more restrictive upload policies. This will only apply to new sites.
Worth noting this is a better fit for J5 than J4.4 because the GD library support was only added in PHP 8.1 (although technically that doesn't stop people uploading the files themselves in J4.4 as web browser support already exists - it's just easier because they can be edited too) - https://php.watch/versions/8.1/gd-avif
Upload AVIF file. Before will be rejected and any files on the server won't be rendered. Afterwards they will be.
Please select:
Documentation link for docs.joomla.org:
No documentation changes for docs.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
Category | ⇒ | Administration com_media SQL Installation |
Status | New | ⇒ | Pending |
#35752 is just for the image list field (I'm not aware of anywhere we use that in core). But people would have needed to upload those files by hand. This PR specifically addresses media manager.
Yes it will address #30666. However it will only address the AVIF part of #37669 (the original issue was a broader thing around document formats etc which obviously isn't covered here)
Category | Administration com_media SQL Installation | ⇒ | Administration com_media SQL Installation Postgresql |
Labels |
Added:
PR-5.0-dev
|
Update?
Category | Administration com_media SQL Installation Postgresql | ⇒ | Administration com_media SQL Installation Postgresql Libraries |
I can confirm this works.
I have tested this item ✅ successfully on d0ec800
On 5.0.0-alpha4
you have to setup the file type and mime type in options
It works but doesn't produce a thumbnail in the media manager, and the instructions for adding .avif files are missing from the settings.
It works but doesn't produce a thumbnail in the media manager, and the instructions for adding .avif files are missing from the settings.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/41381.
is it possible that you server doesn't support av1?
To test to see if your server supports avif see https://php.watch/versions/8.1/gd-avif
Also to check if you use patchtester you will need to manually update the parameters in media manager
Status | Pending | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2023-09-02 17:17:21 |
Closed_By | ⇒ | HLeithner | |
Labels |
Added:
PBF
|
thx
Does this close the following
#30666
#37669
Also see the changes made with #35752