Images are hosted outside the server and are downloaded only to the user (client side).
I have tried the HTML5 download tag, but it does not work very well with IE.
<div style="width:800px; height:457px; background-image:url('http://i.imgur.com/7fypLpI.jpg');"></div>
<a href="http://i.imgur.com/7fypLpI.jpg" download="http://i.imgur.com/7fypLpI.jpg">Download</a>
https://jsfiddle.net/eLpc8d7u/
How can I download the files for example with JavaScript for any browser?
I've seen this other question: IE download file
But I'm still confused to make a single script.