Catalyst::Helper::View::GD::Thumbnail - Helper for GD Thumbnail Views
Create a thumbnail view: script/myapp_create view Thumbnail Thumbnail Then in your controller: sub thumbnail :Local :Args(1) { my ($self, $c, $image_file_path) = @_; $c->stash->{x} = 100; # Create a 100px wide thumbnail #or $c->stash->{y} = 100; # Create a 100px tall thumbnail $c->stash->{image} = $image_file_path; $c->forward('View::Thumbnail'); }
Helper for Thumbnail Views.
Nick Logan, nik_517@yahoo.com
Catalyst::View::GD::Thumbnail
Copyright 2010 Nick Logan (ugexe), all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
[% class %] - Thumbnail View for [% app %]
Thumbnail View for [% app %].
[% author %]
"[% app %]"
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::View::GD::Thumbnail, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::View::GD::Thumbnail
CPAN shell
perl -MCPAN -e shell install Catalyst::View::GD::Thumbnail
For more information on module installation, please visit the detailed CPAN module installation guide.