-
-
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
ReactCrop__crop-mask is not updating after rotating the image. #608
Comments
The library only works for rotating the image within the rectangle like this in the demo: For what you're trying to achieve It would be better to rotate the image and produce a new image and load that into ReactCrop as using CSS transforms will break all the calculations in the library E.g. user wants to rotate to the right 90 degrees -> copy image to canvas -> rotate 90deg -> render that canvas or canvas.toBlob() + URL.createObjectURL(blob) and pass url into There might be cropping libraries which allow you to rotate how you're trying out the box too I'm not sure. It is orders of magnitude more complex to implement. |
My current approach.
I hope my issue is clear now. |
Ah I see that should work. Can you share the code? In the demo if I switch between a landscape and portrait image it works, so want to understand the difference. Screen.Recording.2024-11-27.at.4.04.37.PM.mov |
can we see that during the google meet? |
I fixed it, thanks |
Hi, Please find the below screenshots FYI.
In the above screenshots, after rotating the image, the crop mask is not updating in chrome and edge. In Firefox its working fine.
Can you please help on this.
The text was updated successfully, but these errors were encountered: