I have my original image as png file
as follows:
<img src="originalimage.png" >
Once I modify the original image using a third party annotation library, for example a simple pencil drawing on the original image, it gives me back a dataurl
that replaces my src
with the modified picture. Like so:
<img src="data:image/png;base64,iVBORw0KGgo...>"
Everything works fine, I can view the modified image. However I want to convert the given dataurl back into a png file
like the one above. Like so:
<img src="modifiedImage.png">
How can I convert this dataurl
in Javascript
without using any online converters back into my png file
with the modification applied ?