title: Linking to figures in Sphinx
body: <p>I have some images in my documentation created as a set of reST files in Sphinx. I prefer to keep them pretty small, and I want the user to click on them to get the larger image. The smaller image is not for file size reasons but for presentation reasons. I do not find a syntactic way to combine the tags <code>image:</code> or <code>figure:</code> with <code>ref:</code> or <code>link:</code>.</p>
  
  <pre><code>.. image:: _static/my_image_small.png
  </code></pre>
  
  <p>and I have a bigger version in the same folder: <code>my_image_large.png</code>.</p>
  
  <p>If you come up with a solution, should the larger image just be a file with an explicit link to it or do I create a reST file with an additional image: tag? An alternative could be to play with the image sizes in the reST file, but then I still do not know how to create the link from the small image to the large image. Is there a way to bypass the Sphinx generator and just give the HTML that I want?</p>