Change: Images

created on Oct. 25, 2012, 2:57 p.m. by Hevok & updated on Oct. 25, 2012, 9:50 p.m. by Hevok

The image directive can be used to define an image, which takes either an file path or an URL: ::

.. image:: http://dgallery.s3.amazonaws.com/rst.png

.. image:: http://dgallery.s3.amazonaws.com/rst.png


Additional attributes can be specified: ::

.. image:: http://dgallery.s3.amazonaws.com/rst.png :height: 100 :width: 200 :scale: 50 :alt: alternative text

.. image:: http://dgallery.s3.amazonaws.com/rst.png :height: 100 :width: 200 :scale: 50 :alt: alternative text


A panel can be created by listening multiple images: ::

.. image:: http://dgallery.s3.amazonaws.com/denigma_pos.png
   :width: 200
   :height: 100

.. image:: http://dgallery.s3.amazonaws.com/denigma_pos.png
   :width: 200
   :height: 100

.. image:: http://dgallery.s3.amazonaws.com/denigma_pos.png :width: 200 :height: 100

.. image:: http://dgallery.s3.amazonaws.com/denigma_pos.png :width: 200 :height: 100


Figures can have even a title and legend: ::

.. image:: http://dgallery.s3.amazonaws.com/denigma_pos.png
    :width: 200
    :height: 100

.. figure:: http://dgallery.s3.amazonaws.com/denigma_pos.png
    :width: 200
    :height: 100

    **Figure 1: Testing Denigma markup.** 
    This tests Denigma image rendering.

.. image:: http://dgallery.s3.amazonaws.com/denigma_pos.png :width: 200 :height: 100

.. figure:: http://dgallery.s3.amazonaws.com/denigma_pos.png :width: 200 :height: 100

**Figure 1: Testing Denigma markup.**
This tests Denigma image rendering.

Tags: tutorial, rest
Categories: Tutorial

Comment: Extended explaination and examples.

See entry | Admin

Comment on This Data Unit