Zahatski Aliaksandr > Perl6-Pod-Lib-0.11 > Perl6::Pod::Lib::Image

Download:
Perl6-Pod-Lib-0.11.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Source   Latest Release: Perl6-Pod-Lib-0.12

NAME ^

Perl6::Pod::Lib::Image - add image

SYNOPSIS ^

    =Image t/image.jpg
    =Image file:t/data/P_test1.png
    =for Image :title('Test image title')
    img/image.png

DESCRIPTION ^

The =Image block is used for include image link. For definition of the target file are used a URI:

    =Image t/image.jpg
    =Image file:../test.jpg
    =Image http://example.com/img.jpg

For set title of image add attribute :title or define in Pod Link format:

    =for Image :title('test caption')
    t/data/P_test1.png
    =for Image
    test caption|t/data/P_test1.png

to_xhml

  <img src="boat.gif" alt="Big Boat" title="Big Boat"/>

to_docbook

    <mediaobject>
        <imageobject>
            <imagedata align='center' 
                        caption='test' 
                        format='PNG' 
                        valign='bottom' 
                        scalefit='1' 
                        fileref='t/data/P_test1.png' />
        </imageobject>
        <caption>test</caption>
     </mediaobject>
syntax highlighting: