Yalantis/uCrop

Why image scaled down?

Open

#216 opened on Oct 27, 2016

View on GitHub
 (11 comments) (3 reactions) (0 assignees)Java (11,748 stars) (2,134 forks)batch import
help wanted

Description

I'm using aspect ratio 1:1. Input image 1037x1547, output image 519x519.(I did not zoom the image.) Result should be 1037x1037. Is this behaviour normal?

Do you want to request a feature or report a bug? bug

What is the current behavior? cropped image is scaled

What is the expected behavior? cropped image must not be scaled

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem. I used this code: UCrop.of(data.getData(), Uri.fromFile(new File(getContext().getCacheDir(), "ex_image"))) .withAspectRatio(1, 1) .start(getContext(), this);

Please attach any image files, URL and stack trace that can be used to reproduce the bug.

Which versions of uCrop, and which Android API versions are affected by this issue? Did this work in previous versions of uCrop? 2.2.0

Contributor guide