gpu.js icon indicating copy to clipboard operation
gpu.js copied to clipboard

gpu.js image to jpeg?

Open DoormatIka opened this issue 4 years ago • 1 comments

Is there any way to make an image in gpu.js and make it into a file or put the image in a buffer?

Using nodejs, not the browser.

DoormatIka avatar Dec 16 '21 18:12 DoormatIka

I think you can use the built in canvas support and then use toDataURL(). https://developer.mozilla.org/en-US/docs/Web/API/HTMLCanvasElement/toDataURL

offsky avatar Jan 05 '22 22:01 offsky