Hey, I’m trying to save a canvas image to variable, because later y want to push that variable into a an array, that at end of the loop goes to a database.
I know that:
saveCanvas(canvas, name,".png")
downloads an image, but what I need is something like:
let img = saveCanvas(canvas, name,".png") ;
thumbnails.push(img) ;