Peter Flanigan > CatalystX-Usul > CatalystX::Usul::Model::Imager

Download:
catalystx-usul/CatalystX-Usul-0.7.1184.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: v0.7.1181   Source  

Name ^

CatalystX::Usul::Model::Imager - Manipulate images

Version ^

0.7.$Revision: 1181 $

Synopsis ^

   my $model = $c->model( q(Imager) );

   my ($data, $type, $mtime) =
      $model->transform( [ @args ], $c->req->query_parameters );

   # For a thumbnail image
   # http://localhost:3000/en/imager/scale/static/images/catalyst_logo.png?scalefactor=0.5

Description ^

Transform any image under the document root using the Imager module

Subroutines/Methods ^

COMPONENT

Sets attributes for the document root and the cache root

transform

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

Diagnostics ^

None

Configuration and Environment ^

None

Dependencies ^

CatalystX::Usul::Model
Imager
MIME::Types

Incompatibilities ^

There are no known incompatibilities in this module

Bugs and Limitations ^

There are no known bugs in this module. Please report problems to the address below. Patches are welcome

Author ^

Peter Flanigan, <Support at RoxSoft.co.uk>

License and Copyright ^

Copyright (c) 2008 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

syntax highlighting: