The uploaded image should not be resized, because its width is already less than the maximum width set (1920px). The height constraint was left unset and should not affect resizing.
The image is resized unnecessarily, despite already being within the maximum width constraint. This is because the resize plugin checks both width and height, and treats an unset height as 0, which breaks the logic.
This happens due to these lines from the plugin
When batch_height is not set (and thus 0), the image’s height comparison fails and causes the resize to proceed anyway. I can submit a PR to resolve this.
Labels |
Added:
No Code Attached Yet
|
I see, thanks!
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2025-04-10 13:15:20 |
Closed_By | ⇒ | travisrisner |
@travisrisner Please read #44862.