Skip to content

x must be > = 0 #817

Open
Open
@LuckSiege

Description

@LuckSiege

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

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