Details
Description
Reproduction steps:
- Upload an image of size 200x200
- Request the image with various parameters (e.g., http://localhost:8080/xwiki/bin/download/200/WebHome/200_200.png?width=*XXXX*&height=*YYYY*&rev=1.1)
Expected
- requesting 100x300 returns 66x200
- requesting 300x100 returns 200x600
- requesting 300x400 returns 150x200
(the request ratio is preserved to fit the max dimensions of the image)
Actual
- requesting 100x300 returns 100x200
- requesting 300x100 returns 200x100
- requesting 300x400 returns 200x200
(basically the outscaled dimension is replaced by the original one without considering the ratio)
Attachments
Issue Links
- relates to
-
XWIKI-20532 Server-side image resizing always preserves the aspect ratio
-
- Closed
-