Skip to content

Cropping and zooming returning distorted images #247

@kpkozak

Description

@kpkozak

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions