Created
April 22, 2020 02:20
-
-
Save Jagathishrex/43e9c0f1bcd4f81a370a8ebd1951be1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let png = canvas.toDataURL(); // default png | |
let jpeg = canvas.toDataURL('image/jpg'); | |
let webp = canvas.toDataURL('image/webp'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment