-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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 can you modify the function of the download button? #876
Comments
+1 |
Give this a try: Use the toDataURL() method on the instance to retrieve the Base64 representation of the image/canvas. I experimented with something similar in a React component, and it was successful. const instance = new ImageEditor(document.querySelector('#tui-image-editor'), { const dataURL = instance.toDataURL(); |
I am trying to send the image asset to an API when the download is triggered, does anyone have an idea on how to accomplish that.
The text was updated successfully, but these errors were encountered: