It looks like HTMLCanvasElement.toDataURL() does what's needed. https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL Maybe also ask what resolution would be desired, or at least make the canvas resizable.
It looks like HTMLCanvasElement.toDataURL() does what's needed.
https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL
Maybe also ask what resolution would be desired, or at least make the canvas resizable.