painterro
painterro copied to clipboard
Save image without background (using backplateImgUrl)
I use backplateImgUrl to put an image in the background to be able to draw on it. However, when I save, I only have my drawings WITHOUT the background.
Painterro version E.g. v1.2.78
Code Here is my code, for the moment I get the base64 from the saveHandler and I put it in an online viewer.
Painterro({ id: "painterro", colorScheme: { main: '#fdf6b8', control: '#FECF67', }, backplateImgUrl: "data:" + selectedFile.file.mime_type + ';base64,' + selectedFile.data, toolbarPosition: "top", saveHandler: function (image, done) { console.log('done:', done) console.log(image.asDataURL()) } }).show()
Screenshots
What I drew :
What I saved:
Info Chrome Version 106.0.5249.61 node : v14.0.0 npm : 6.14.4
Is there something I haven't seen?
Thank you in advance for your answer.