-
Notifications
You must be signed in to change notification settings - Fork 344
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
Cropping does not work if the user does not change the default bounding box (React component) #298
Comments
Could u please provide a codesandbox that contains ur code exactly to check it and have it reproduced? |
Hi @AhmeeedMostafa - sure, codesandbox here: https://codesandbox.io/s/empty-violet-3z81j3?file=/src/App.js If you upload a file, and hit the save button below the editor, the output is the full image rather than the cropped version. Then if you move the crop handles a little and hit the save button again, it works and actually crops the image. Cheers. |
Okay we will check it once we have time and if it's found we will consider its fix and notify you |
it's fixed in v4.5.0 now, thanks for reporting. |
I have the same bug in v4.5.1 |
For me it works on the first upload, however if I change the image, cropping has no effect, unless the user interacts. (v4.8.1) |
Hey,
I have an instance of the React component configured so that the default (and only) tool available is the crop tool, so when the component first loads it shows the default crop boundary based on the aspect ratio provided.
However, if the user does not interact with the default boundary, the crop does not work and the output is the full image. If it matters, I'm not using the save modal, I'm using the
getCurrentImgDataFnRef
prop and extracting the base64 image data like so:Thanks
The text was updated successfully, but these errors were encountered: