I have a gallery page that lists medium and high resolution images of plants that users can download. However, the default behavior of a jpeg image inside an href is to open in the browser window. For these specific links I would like users to be able to download the image when clicking on the link instead of having to open the image in the browser and then save it.
Here is the code I have:
<div class="topic-links">
<div class="topic col-sm-4 col-md-4">
<img src="{gallery_thumb}" alt="temp_square-tn" width="220" height="200">
<h6>{exp:char_limit total="30" exact="no"}{title}{/exp:char_limit}</h6>
<p>
{if medium_res != ""}<a href="{medium_res}">Medium</a><br />{/if}
{if high_res != ""}<a href="{high_res}">Large</a>{/if}
</p>
</a>
</div><!-- /.topic -->
</div><!-- /.topic-links -->
What is the best way to force a download?