mirror of
https://github.com/flyimg/flyimg.git
synced 2026-04-25 17:55:54 +03:00
[GH-ISSUE #599] preserve-aspect-ratio (par) option has no effect; cannot stretch to exact width/height #216
Labels
No labels
Docs
Docs
Docs
Security
UnitTest
bug
dependencies
duplicate
enhancement
enhancement
enhancement
hacktoberfest
help wanted
invalid
pull-request
question
stale
version 1
version 2
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/flyimg#216
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sadok-f on GitHub (Jan 12, 2026).
Original GitHub issue: https://github.com/flyimg/flyimg/issues/599
Originally assigned to: @sadok-f on GitHub.
Bug reported here: https://github.com/flyimg/flyimg/discussions/598
Steps to reproduce
Open the demo.
Request an image with a different aspect ratio using both width and height,
https://demo.flyimg.io/upload/w_200,h_300,par_1/https://flyimg.io/demo-images/Citroen-DS.jpg
or
https://demo.flyimg.io/upload/w_200,h_300,par_0/https://flyimg.io/demo-images/Citroen-DS.jpg.
Actual behavior
Returned image size is ~200x173, preserving the original aspect ratio.
Changing par between 0 and 1 has no visible effect.
Expected behavior
par=1 (default): preserve aspect ratio (current behavior).
par=0: do not preserve aspect ratio; stretch image to exactly the requested w×h (e.g. 200x300).