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

Rotate image by specific angle #1

Open
filiandrader opened this issue Dec 16, 2022 · 1 comment
Open

Rotate image by specific angle #1

filiandrader opened this issue Dec 16, 2022 · 1 comment

Comments

@filiandrader
Copy link

I downloaded your lib to do some tests and I made a method to rotate the photo at a specific angle, not just adding 90 degrees, but I found a bug in the crop overlay, can you fix it?

Screen_Recording_20221216_143423_EasyCrop.mp4
@mr0xf00
Copy link
Owner

mr0xf00 commented Dec 26, 2022

Hi @filiandrader
The problem here is that the crop region is updated whenever the transform is updated as well, but the way it's done currently is by snapping the transform to the nearest 90deg angle first. It's of course possible to switch it to a more generic behavior since almost everything else is done using matrices.
I might not have a working release with that feature added for a while (need to figure out the ui for it as well), but if you can share the code you're using right now to get the custom angle, I'll give you some hints as to what you might need to get everything working.

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