Data-Pixels icon indicating copy to clipboard operation
Data-Pixels copied to clipboard

Saving generated pictures

Open hatyak opened this issue 4 years ago • 2 comments

Hi, Thank you for this, works great and you are awesome! I have a question though. Is there an easy way to save the generated files as jpeg or png?

hatyak avatar Jul 26 '21 23:07 hatyak

I'm also interested in this. A utility that generates a .png or .jpeg and saves it to a folder would be amazing.

znwhite avatar Aug 05 '21 19:08 znwhite

You could run a Node.js script which pipes the image output into an actual file https://stackoverflow.com/questions/43487543/writing-binary-data-using-node-js-fs-writefile-to-create-an-image-file

Or further process the image before storing, by using a library such as https://sharp.pixelplumbing.com/

michelbio avatar Nov 02 '21 11:11 michelbio