File Coverage

erecipes/perl/lib/CGI/Ex/Recipes/Imager.pm
Criterion Covered Total %
statement 6 6 100.0
branch n/a
condition n/a
subroutine 2 2 100.0
pod n/a
total 8 8 100.0


line stmt bran cond sub pod time code
1             package CGI::Ex::Recipes::Imager;
2              
3 1     1   9774 use warnings;
  1         2  
  1         47  
4 1     1   6 use strict;
  1         3  
  1         73  
5             our $VERSION = '0.01';
6             =head1 NAME
7              
8             CGI::Ex::Recipes::Imager - Implements image mangement!
9              
10             =head1 SYNOPSIS
11              
12             Somewhere in the templates.
13              
14             [% Imager.img('./foo/bar.jpg',widtt=300, height=400, class='blah',style='float:right) %]
15             ...
16              
17            
18             =head1 DESCRIPTION
19              
20             NOTE: this is just a draft. Nothing is implemented.
21              
22             Manages display and recise of images. If an image is already recised and stored in the temp directory,
23             just creates an img tag with src attribute pointing to the ready for display image.
24             If the image is displayed for the very first time does everithing needed to resize a copy of the
25             image and place it in the temp directory. then it creates a tag for it so it can be displayed
26              
27             =head1 METHODS
28              
29             =head2 img
30              
31             =cut
32              
33             =head1 AUTHOR
34              
35             Красимир Беров, C<< >>
36              
37              
38             =head1 ACKNOWLEDGEMENTS
39              
40             =head1 COPYRIGHT & LICENSE
41              
42             Copyright 2007 Красимир Беров, all rights reserved.
43              
44             This program is free software; you can redistribute it and/or modify it
45             under the same terms as Perl itself.
46              
47             =cut
48              
49             1; # End of CGI::Ex::Recipes::Imager