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

How to crop the image and get the dataUrl? #3

Closed
sahandnayebaziz opened this issue Apr 25, 2017 · 2 comments
Closed

How to crop the image and get the dataUrl? #3

sahandnayebaziz opened this issue Apr 25, 2017 · 2 comments

Comments

@sahandnayebaziz
Copy link
Contributor

I understand how to set Croppr up, but how do I actually get the cropped image after the user is done cropping the image?

@jamesssooi
Copy link
Owner

jamesssooi commented Apr 25, 2017

Croppr does not actually crop the image for you. It's function is to simply retrieve the cropping coordinates so that other services (such as your backend) can do the actual cropping. It was made on the understanding that it's safer to perform server-side image manipulation rather than trusting the user's input entirely.

However, if you do insist on performing client-side cropping (or a mix of both), you are free to use your own implementation for the actual image cropping part. You can refer to this link for further information:

@sahandnayebaziz
Copy link
Contributor Author

Ah, I see. Wonderful. Thank you @jamesssooi :)

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