On 2011-03-03, cool-RR wrote:
> Hello,
> In my html documentation I would like to put an image with a thumbnail. i.e.
> a small image will be shown on the document, and when clicking it the full
> version of the image will be shown. I don't care whether Sphinx/Chrome does
> the resizing or whether I have to supply two pictures myself.
> What's the best way to do this?
It depends. A separate thumbnail saves bandwith and makes a faster
loading of the overview::
.. image:: tree-small.jpg
:alt: tree
:target: tree.jpg
If there are just a few images and they will
usually be magnified anyway by (almost) all readers, you can also use the
"original" and set an explicite size::
.. image:: tree.jpg
:alt: tree
:width: 2 cm
(You can also use a "figure" directive to give the images a caption.)
See http://docutils.sourceforge.net/docs/ref/rst/directives.html#images
Günter
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.