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

x must be > = 0 #817

Open
LuckSiege opened this issue Feb 15, 2022 · 0 comments · May be fixed by #828
Open

x must be > = 0 #817

LuckSiege opened this issue Feb 15, 2022 · 0 comments · May be fixed by #828

Comments

@LuckSiege
Copy link

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

Bug when crop long image

What is the current behavior?

When crop a long image, if the finger zooms the picture, the picture will not return to the size of the crop box, and x must be > = 0 exception occurs when pressing crop

What is the expected behavior?

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem.

Crop any long image, zoom the image first, and then crop it. It will appear error x must be > = 0

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

  if (shouldCrop) {
            saveImage(Bitmap.createBitmap(mViewBitmap, cropOffsetX, cropOffsetY, mCroppedImageWidth, mCroppedImageHeight));
            if (mCompressFormat.equals(Bitmap.CompressFormat.JPEG)) {
                copyExifForOutputFile(context);
            }
            return true;
        }

Which versions of uCrop, and which Android API versions are affected by this issue? Did this work in previous versions of uCrop?
Any version will appear

@phxnirvana phxnirvana linked a pull request Mar 10, 2022 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant