Yalantis/uCrop

Why image scaled down?

Open

#216 aperta il 27 ott 2016

Vedi su GitHub
 (11 commenti) (3 reazioni) (0 assegnatari)Java (2134 fork)batch import
help wanted

Metriche repository

Star
 (11.748 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor