RTC NPM Resource Changed bug PR-5.1-dev Pending

User tests: Successful: Unsuccessful:

avatar dgrammatiko
dgrammatiko
18 Apr 2024

Pull Request for Issue # .

Summary of Changes

  • add missing avif support in the Image class
  • The resize plugin cannot create an image from string for AVIF files (someone needs to open an issue to php-src for this)
  • both webp and avif cannot be supported for editing because browsers are inconsistent atm on the canvas.toDataURL()
    spec: toDataURL

Testing Instructions

  • Either run npm I or use the package from the PR

  • extract and upload the files Archive.zip

  • Delete/rename the files

  • Delete the files. Edit the Media Action plugin resize with some values (ie 800 and 500) and check that the images on upload are getting resized.

Actual result BEFORE applying this Pull Request

Expected result AFTER applying this Pull Request

Link to documentations

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

avatar dgrammatiko dgrammatiko - open - 18 Apr 2024
avatar dgrammatiko dgrammatiko - change - 18 Apr 2024
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 18 Apr 2024
Category Administration com_media NPM Change Libraries Front End Plugins
avatar dgrammatiko dgrammatiko - change - 18 Apr 2024
Title
avif/webp
[5.1] Proper support for avif/webp images
avatar dgrammatiko dgrammatiko - edited - 18 Apr 2024
avatar dgrammatiko dgrammatiko - change - 18 Apr 2024
Labels Added: NPM Resource Changed PR-5.1-dev
5f0d611 18 Apr 2024 avatar dgrammatiko todo
avatar dgrammatiko dgrammatiko - change - 18 Apr 2024
The description was changed
avatar dgrammatiko dgrammatiko - edited - 18 Apr 2024
avatar Quy Quy - test_item - 19 Apr 2024 - Tested successfully
avatar Quy
Quy - comment - 19 Apr 2024

I have tested this item ✅ successfully on 6f7b7cb


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

avatar viocassel viocassel - test_item - 19 Apr 2024 - Tested successfully
avatar viocassel
viocassel - comment - 19 Apr 2024

I have tested this item ✅ successfully on 6f7b7cb


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

avatar Quy Quy - change - 19 Apr 2024
Status Pending Ready to Commit
avatar Quy
Quy - comment - 19 Apr 2024

RTC


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

avatar dgrammatiko dgrammatiko - change - 20 Apr 2024
Labels Added: RTC
avatar dgrammatiko dgrammatiko - change - 20 Apr 2024
The description was changed
avatar dgrammatiko dgrammatiko - edited - 20 Apr 2024
avatar dgrammatiko
dgrammatiko - comment - 20 Apr 2024

Can we remove the RTC. Turns out that PHP docs were wrong php/php-src#14010

Please test again with:

  • Delete the files. Edit the Media Action plugin resize with some values (ie 800 and 500) and check that the images on upload are getting resized.
avatar viocassel viocassel - test_item - 20 Apr 2024 - Tested successfully
avatar viocassel
viocassel - comment - 20 Apr 2024

I have tested this item ✅ successfully on 84874f6

?


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

avatar richard67 richard67 - change - 20 Apr 2024
Status Ready to Commit Pending
avatar richard67
richard67 - comment - 20 Apr 2024

Back to pending. @Quy Could you test again? Thanks in advance.


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

avatar brianteeman
brianteeman - comment - 20 Apr 2024

It was commented elsewhere that this PR would also resolve an issue with files named JPG as opposed to jpg.

Sorry to say this pr makes no difference

avatar Quy Quy - test_item - 20 Apr 2024 - Tested successfully
avatar Quy
Quy - comment - 20 Apr 2024

I have tested this item ✅ successfully on 84874f6


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

avatar Quy Quy - change - 20 Apr 2024
Status Pending Ready to Commit
avatar Quy
Quy - comment - 20 Apr 2024

RTC


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

avatar HLeithner
HLeithner - comment - 24 Apr 2024

This pull request has been automatically rebased to 5.2-dev.

avatar dgrammatiko
dgrammatiko - comment - 24 Apr 2024

@HLeithner why did you moved this one to 5.2? This is a bug fix nothing new here...

avatar HLeithner
HLeithner - comment - 24 Apr 2024

I only had quick look and just classified it as feature since nobody else looked at it and added a label. If I'm wrong no problem can be changed back as long as nobody update the branch.

avatar dgrammatiko
dgrammatiko - comment - 24 Apr 2024

AVIF support was added with #41381 but George missed some parts. This PR just adds them, it doesn't have to wait for 6 months

Edit: actually it fixes the issue reported in the introductory PR: #41381 (comment) where you also responded: #41381 (comment)

avatar HLeithner
HLeithner - comment - 24 Apr 2024

switched back to 5.1 thanks

avatar bembelimen bembelimen - change - 11 May 2024
Labels Added: bug
avatar bembelimen bembelimen - change - 14 May 2024
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2024-05-14 06:52:04
Closed_By bembelimen
avatar bembelimen bembelimen - close - 14 May 2024
avatar bembelimen bembelimen - merge - 14 May 2024
avatar bembelimen
bembelimen - comment - 14 May 2024

Thx

Add a Comment

Login with GitHub to post a comment