-
Notifications
You must be signed in to change notification settings - Fork 91
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
Canvas support #9
Comments
Hi @mbwhite, do you mean drawing the Croppr UI on top of a canvas? Or do you mean using Croppr to crop an existing canvas context? If it's the latter, you can refer to this comment I've made in another thread. |
@jamesssooi ... I've an existing canvas element and the wish is to display the Croppr UI on top that. |
If you inspect Croppr's DOM, you'd see that Croppr's elements (handles, boxes, etc) are simply laid on top of an element. So in theory, with some modifications to Croppr you can make it overlay these elements on top of your An alternative method is to simply create an |
@jamesssooi Thanks for the update - sorry I didn't respond earlier. Will close this issue. |
This comment appears to have a solid example of drawing the Croppr selection onto a canvas element. |
I've been reviewing the code to check if it's possible to apply Croppr.is to a canvas.
Would this be possible?
I understand that the aim of Croppr is get the size selection and then crop later.
The text was updated successfully, but these errors were encountered: