I would like to provide functionality for a user to export (save locally) an image (svg) that is in a webpage but, unsure how that can be done. I have see that you can do this with canvas but not regular images.
Example Code:
<html>
<body>
<img src="/path/to/image.svg">
<button>Export and Save</button>
</body>
</html>