Open chernandez03 opened 3 years ago
Was thinking that if I changed the file output to .gif it would work (see code below) but haven't had any luck.
const saveImage = (_editionCount) => { fs.writeFileSync( ./output/${_editionCount}.gif, canvas.toBuffer("image/gif") ); };
./output/${_editionCount}.gif
Any advice?
Thats not gonna work since the gif requires many more things to be generated properly. Im not experienced at this but I imagine you would have to change a lot of the code.
Was thinking that if I changed the file output to .gif it would work (see code below) but haven't had any luck.
const saveImage = (_editionCount) => { fs.writeFileSync(
./output/${_editionCount}.gif
, canvas.toBuffer("image/gif") ); };Any advice?