Saber2pr's Blog

PrintToPicture

toDataURL

Output base64 pictures.

canvas.toDataURL("image/" + type)

Type: png | jpeg | webp

chrome supports webp