Language Change PR-4.3-dev PR-5.0-dev Pending

User tests: Successful: Unsuccessful:

avatar ditsuke
ditsuke
25 May 2023

Summary of Changes

Introduces image compression to the image resizer plugin.

Why?

Resizing might result in a size increase, so we leave an option to compress.

Testing Instructions

  • Drop some images in a media folder (mix PNG, WEBP, JPG)
  • Configure a checkfiles task to resize/compress these images
  • Verify that the resized images are compressed with the right level.

Actual result BEFORE applying this Pull Request

No compression option. Image size may go up after the resize process.

Expected result AFTER applying this Pull Request

Compression option.

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 joomla-cms-bot joomla-cms-bot - change - 25 May 2023
Category Administration Language & Strings Front End Plugins
avatar ditsuke ditsuke - open - 25 May 2023
avatar ditsuke ditsuke - change - 25 May 2023
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 25 May 2023
Category Administration Language & Strings Front End Plugins Unit Tests Repository Administration com_admin SQL
avatar ditsuke ditsuke - change - 25 May 2023
Labels Added: Language Change PR-4.3-dev
avatar MrMusic
MrMusic - comment - 26 May 2023

I suspect a mistake between compression <-> quality.
Usually, when processing jpeg images, the 'quality' is set in the range from 0 to 100, not the compression: Lower values are poor quality. Higher values are better quality.
To be consistent we should use 'quality'.

avatar joomla-cms-bot joomla-cms-bot - change - 26 May 2023
Category Administration Unit Tests Repository com_admin SQL Administration Language & Strings Front End Plugins
avatar wilsonge wilsonge - change - 26 May 2023
Labels Added: ?
Removed: Language Change
avatar ditsuke ditsuke - change - 26 May 2023
Labels Added: Language Change PR-5.0-dev
Removed: ?
avatar ditsuke
ditsuke - comment - 26 May 2023

I suspect a mistake between compression <-> quality. Usually, when processing jpeg images, the 'quality' is set in the range from 0 to 100, not the compression: Lower values are poor quality. Higher values are better quality. To be consistent we should use 'quality'.

Honestly I'd prefer quality too, just that the initial discussion I had regarding this feature we talked about compression.

avatar ceford ceford - test_item - 13 Sep 2023 - Tested unsuccessfully
avatar ceford
ceford - comment - 13 Sep 2023

I have tested this item ? unsuccessfully on 38458ad

Several problems with the patch applied:
I see string keys rather than strings as the last Task Parameter
PLG_TASK_CHECK_FILES_LABEL_COMPRESSION *
PLG_TASK_CHECK_FILES_LABEL_COMPRESSION_DESC

I think the default value should be something reasonable, perhaps 75 rather than 0

The task does not actually run - Run Test just gives a Task: "Resize images" popup that never completes. If I close it I see a Running since ... Icon.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/40658.
avatar HLeithner
HLeithner - comment - 30 Sep 2023

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

avatar HLeithner
HLeithner - comment - 24 Apr 2024

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

avatar HLeithner HLeithner - change - 24 Apr 2024
Title
feat(task/checkfiles): Introduce image compression
[5.2] feat(task/checkfiles): Introduce image compression
avatar HLeithner HLeithner - edited - 24 Apr 2024
avatar ChrisHoefliger ChrisHoefliger - test_item - 15 Jul 2024 - Tested successfully
avatar ChrisHoefliger ChrisHoefliger - test_item - 15 Jul 2024 - Tested successfully
avatar ChrisHoefliger
ChrisHoefliger - comment - 15 Jul 2024

I have tested this item ✅ successfully on 38458ad

I have tested this with an image of 5.3MB and 6000px width. Compressed to a width of 1200px and 80% quality it resulted in a file size of 669kB


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

avatar ChrisHoefliger
ChrisHoefliger - comment - 15 Jul 2024

I have tested this item ✅ successfully on 38458ad

I have tested this with an image of 5.3MB and 6000px width. Compressed to a width of 1200px and 80% quality it resulted in a file size of 669kB


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

avatar dorisdreher dorisdreher - test_item - 15 Jul 2024 - Tested successfully
avatar dorisdreher
dorisdreher - comment - 15 Jul 2024

I have tested this item ✅ successfully on 38458ad


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

avatar brianteeman
brianteeman - comment - 15 Jul 2024

I have no idea how you can say that you have tested this as at a minimum the new language strings are in the wrong file so it can only ever display the language keys as reported by @ceford earlier

image

avatar brianteeman brianteeman - test_item - 15 Jul 2024 - Tested unsuccessfully
avatar brianteeman
brianteeman - comment - 15 Jul 2024

I have tested this item ? unsuccessfully on 38458ad


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

avatar brianteeman
brianteeman - comment - 15 Jul 2024

Tried to do a test run

image

avatar HLeithner
HLeithner - comment - 2 Sep 2024

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

avatar HLeithner HLeithner - change - 2 Sep 2024
Title
[5.2] feat(task/checkfiles): Introduce image compression
[5.3] feat(task/checkfiles): Introduce image compression
avatar HLeithner HLeithner - edited - 2 Sep 2024

Add a Comment

Login with GitHub to post a comment