Orze::Drivers::Thumb - Create a page by copying an image and making a thumbnail of it
Create a page by copying an image from the data/ directory to the www/ directory and creating a thumbnail with the same name prefixed by thumb_.
data/
www/
thumb_
It takes care of the following attributes:
The format for the thumbnail.
The size of the thumbnail.
<page name="media/poster" extension="pdf" format="png" size="200x300" driver="Thumb"> </page>
This snippet of an xml project description copy the file data/outputdir/media.pdf to www/outputdir/media.pdf and a thumbnail of size 300x200 to the file www/outputdir/thumb_media.png
data/outputdir/media.pdf
www/outputdir/media.pdf
www/outputdir/thumb_media.png
Lookt at Image::Thumbnail for the supported formats.
Do the real processing
To install Orze, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Orze
CPAN shell
perl -MCPAN -e shell install Orze
For more information on module installation, please visit the detailed CPAN module installation guide.