Yalantis/uCrop

Why image scaled down?

Open

#216 建立於 2016年10月27日

在 GitHub 查看
 (11 留言) (3 反應) (0 負責人)Java (2,134 fork)batch import
help wanted

倉庫指標

Star
 (11,748 star)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南