User tests: Successful: Unsuccessful:
Pull Request for Issue #44862
This pull request resolves a bug in the Media Action - Resize plugin where images are resized unnecessarily when only one dimension (width or height) is set.
Previously, if a user defined only a max width (e.g., 1920px) and left height unset, the plugin would still resize small images (e.g., 200px wide). This occurred because the height check defaulted to 0, incorrectly failing the comparison logic.
The logic has been updated to evaluate width and height independently. The plugin now only resizes if the image exceeds a defined constraint.
Images smaller than the defined max width or height are still resized if one constraint is not set.
Images are only resized if they exceed a defined max width or height. Unset dimensions are ignored in the check, preventing unnecessary resizing.
Please select:
Status | New | ⇒ | Pending |
Category | ⇒ | Front End Plugins |
Labels |
Added:
PR-5.3-dev
|
I have tested this item ✅ successfully on 09d2249
I have tested this item ✅ successfully on 09d2249
Status | Pending | ⇒ | Ready to Commit |
RTC
Labels |
Added:
RTC
|
Status | Ready to Commit | ⇒ | Fixed in Code Base |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-04-19 15:00:47 |
Closed_By | ⇒ | richard67 |
Thanks all (author and testers).
I have tested this item ✅ successfully on b9a54b0
I have tested this successfully (with both only height set and both width and height set). Thanks @travisrisner!
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/45311.