Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cropping and zooming returning distorted images #247

Open
kpkozak opened this issue Jun 6, 2019 · 0 comments
Open

Cropping and zooming returning distorted images #247

kpkozak opened this issue Jun 6, 2019 · 0 comments

Comments

@kpkozak
Copy link

kpkozak commented Jun 6, 2019

When using zoom combined with mode=crop, returned image has its original dimensions, with cropped area streched to its dimensions.
Example: http://resizer.apphb.com/fountain-small.jpg?w=1000&h=1200&mode=crop&zoom=1.8

image

The problem seems to appear above some threshold (when width of the resized image exceeds the original dimension)

Also, it does not respect that images should not be upscaled by default, for example: http://resizer.apphb.com/fountain-small.jpg?w=1000&h=1200&mode=crop&zoom=1.5 returns image resized to 1500x1800, although original size, cropped version of image is 1000x1200 fragment.

Interestingly, everything works fine if add crop parameters:
http://resizer.apphb.com/fountain-small.jpg?w=1000&h=1200&mode=crop&zoom=23&crop=0,0,1000,1200

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant