? ? Pending

User tests: Successful: Unsuccessful:

avatar brianteeman
brianteeman
10 Apr 2021

#31048 provided the library level support for webp images

This PR adds webp to the list of allowed image types for com_templates. It does not have an update sql as that would change user data.

This isnt really anything to test here accept codestyle as using webp images in templates was the test for the libray update so we know it works

adding support to the media manager will be in its own pr (its a bit more complex)

avatar brianteeman brianteeman - open - 10 Apr 2021
avatar brianteeman brianteeman - change - 10 Apr 2021
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 10 Apr 2021
Category Administration com_templates SQL Installation Postgresql
avatar Quy Quy - test_item - 14 Apr 2021 - Tested successfully
avatar Quy
Quy - comment - 14 Apr 2021

I have tested this item successfully on 7f4cfaa


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33087.

avatar particthistle particthistle - test_item - 17 Apr 2021 - Tested successfully
avatar particthistle
particthistle - comment - 17 Apr 2021

I have tested this item successfully on 7f4cfaa

Code style change. All change really does is allow webp images to be used in com_templates.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33087.

avatar Quy Quy - change - 17 Apr 2021
Status Pending Ready to Commit
Labels Added: ?
avatar Quy
Quy - comment - 17 Apr 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33087.

avatar SharkyKZ SharkyKZ - test_item - 17 Apr 2021 - Tested unsuccessfully
avatar SharkyKZ
SharkyKZ - comment - 17 Apr 2021

I have tested this item ? unsuccessfully on 7f4cfaa

webp images are saved as jpgs, transparency is lost.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33087.

avatar brianteeman brianteeman - change - 17 Apr 2021
Labels Added: ?
avatar brianteeman
brianteeman - comment - 17 Apr 2021

@SharkyKZ good spot - fixed it (I hope please retest)

@Quy please remove RTC for now

avatar brianteeman
brianteeman - comment - 17 Apr 2021

To test the resize and cropping of a webp image. Upload an image and resize and/or crop. Then download the image and open in a text editor. If it is still a webp image you will see something like RIFF�"� WEBPVP8 at the beginning. If it has been saved incorrectly as a jpeg then it will have <CREATOR: gd-jpeg v1.0 (using IJG JPEG v90), quality = 100

avatar Quy Quy - change - 17 Apr 2021
Status Ready to Commit Pending
avatar particthistle
particthistle - comment - 18 Apr 2021

In testing, I also found an issue if the extension of the file is upper case.

sample.PNG would upload, but then not be visible in the file tree. Adding GIF,JPG,JPEG,PNG,WEBP to the list of allowed extensions then allowed the uppercase extension to be viewed.

Is it worth adding that now, or is this something to be raised as a separate issue to fix in the uploader so that it makes the extensions lowercase when the files are uploaded?

avatar brianteeman
brianteeman - comment - 18 Apr 2021

Beyond the scope of this PR - please create a separate issue

avatar particthistle particthistle - test_item - 18 Apr 2021 - Tested successfully
avatar particthistle
particthistle - comment - 18 Apr 2021

I have tested this item successfully on e64306b

Addition of png and webp extensions allows file types to be uploaded.
(To test on existing build check System > Site Templates > Options to add png,webp to the image extensions list, as it won't apply the default automatically)

Resizing and Cropping a webp image saves the image as a webp image correctly.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33087.

avatar anibalsanchez anibalsanchez - test_item - 23 Apr 2021 - Tested successfully
avatar anibalsanchez
anibalsanchez - comment - 23 Apr 2021

I have tested this item successfully on e64306b

Test OK


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33087.

avatar anibalsanchez
anibalsanchez - comment - 23 Apr 2021

I have tested this item successfully on e64306b

Test OK


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33087.

avatar Quy Quy - change - 23 Apr 2021
Status Pending Ready to Commit
avatar Quy
Quy - comment - 23 Apr 2021

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/33087.

avatar rdeutz rdeutz - change - 24 Apr 2021
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2021-04-24 08:13:38
Closed_By rdeutz
Labels Added: ?
Removed: ?
avatar rdeutz rdeutz - close - 24 Apr 2021
avatar rdeutz rdeutz - merge - 24 Apr 2021
avatar brianteeman
brianteeman - comment - 24 Apr 2021

Thanks

Add a Comment

Login with GitHub to post a comment