I am generating a image on client side and I display it with HTML like this:
<img src="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgM...."/>
I want to offer the possibility to download the generated Image.
How can I realize that the browser is opening a file save dialoge (or just download the image like chrome or firefox to the download folder would do) which allows the user to save the image without doing right click and save as on the image?
I would prefer a solution without server interaction. So I am aware that it would be possible if I first upload the Image and then start the download.
Thanks a lot!