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

Not working properly when parent container is rotated #545

Closed
david-babunashvili opened this issue Jun 8, 2023 · 1 comment
Closed

Not working properly when parent container is rotated #545

david-babunashvili opened this issue Jun 8, 2023 · 1 comment

Comments

@david-babunashvili
Copy link

When I'm trying to crop an image inside a rotated parent element it doesn't work well, any idea?

CleanShot 2023-06-08 at 17 27 22

@sekoyo
Copy link
Owner

sekoyo commented Jun 10, 2023

Hi sorry but this library doesn't support this kind of rotation, only rotating the image but not the crop like in the demo - https://codesandbox.io/s/react-image-crop-demo-with-react-hooks-y831o

I do wonder what the final image would look like in your case?

So you'll either have to use a different library, or use v9 of this one which had a spin prop - https://github.com/DominicTobias/react-image-crop/tree/9.1.1#spin-optional but I removed this as it was hardly used and difficult to maintain (involved some trigonometry maths and there was an issue I couldn't fix, though it worked for most cases)

@sekoyo sekoyo closed this as completed Jun 10, 2023
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

No branches or pull requests

2 participants