Recipes/Imager.pm

filter: Statementstmt 100% 8 / 8 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 10 / 10 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Recipes/View.pm ↑ Summary
1 package CGI::Ex::Recipes::Imager;
2  
3 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 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<< <k.berov at gmail.com> >>
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 1; # End of CGI::Ex::Recipes::Imager
« Recipes/View.pm ↑ Summary