Details
-
Bug
-
Resolution: Fixed
-
Critical
-
8.4.4, 9.0-rc-1
-
Unit
-
Unknown
-
N/A
-
N/A
-
Pull Request accepted
-
Description
Steps to reproduce:
Open <xwiki-host>/xwiki/bin/download/Sandbox/WebHome/XWikiLogo.png?width=40&height=10&rev=1.1 where <xwiki-host> is the URL of your XWiki installation.
Expected result:
An image of width 40 and height 10 is displayed.
Actual result:
An quadratic image of width and height 10 is displayed.
This demonstrates that the aspect ratio is preserved even when not requested. This is because the ThumbnailatorImageProcessor always preserves the aspect ratio so this is a regression introduce as part of fixing XWIKI-7623 in XWiki 8.4.4 and 9.0 RC1. I'm not marking this as a blocker as the regression is old.
This may result in pixelated images and might thus be one cause of XWIKI-19220. Fixing this would also partially fix XWIKI-20499 at least when the desired image dimensions are smaller than the original image.
Attachments
Issue Links
- is related to
-
XWIKI-20602 Server-side image resizing does not preserver image ratio in case of outscaling
- Closed
-
XWIKI-20499 Uniformize the image dimensions on insert/update
- Closed