CatalystX::Usul::Model::Imager - Manipulate images
Describes v0.16.$Rev: 1 $
package YourApp; use Catalyst qw(ConfigComponents...); __PACKAGE__->config( 'Model::Imager' => { parent_classes => q(CatalystX::Usul::Model::Imager), scale => { scalefactor => 0.5 } }, ); # For a thumbnail image # http://localhost:3000/imager/scale/static/images/catalyst_logo.png?scalefactor=0.5
Transform any image under the document root using the Imager module
Defines the following attributes
A positive integer which defaults to 2. The number of intermediate directory levels beneath the cache_root
2
cache_root
A required path which points to the root of the image cache
An array ref of non empty simple strings which are the list of methods that can be applied to the image. Defaults to scale scaleX scaleY crop flip rotate convert map
scale scaleX scaleY crop flip rotate convert map
A required directory. The document root for serving static content
An instance of MIME::Types
Sets attributes for the document root and the cache root
($data, $type, $mtime) = $self->transform( $args, $query );
Creates an Imager object for the supplied path under the document root. Transforms the object using the supplied method and parameters. Returns the rendered image data, the mime type and the modification time of the image file
None
There are no known incompatibilities in this module
There are no known bugs in this module. Please report problems to the address below. Patches are welcome
Peter Flanigan, <Support at RoxSoft.co.uk>
<Support at RoxSoft.co.uk>
Copyright (c) 2014 Peter Flanigan. All rights reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic
This program is distributed in the hope that it will be useful, but WITHOUT WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
To install CatalystX::Usul, copy and paste the appropriate command in to your terminal.
cpanm
cpanm CatalystX::Usul
CPAN shell
perl -MCPAN -e shell install CatalystX::Usul
For more information on module installation, please visit the detailed CPAN module installation guide.