The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Catalyst::Helper::View::GD::Thumbnail - Helper for GD Thumbnail Views

SYNOPSIS

    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->{thumbnail}{x}     = 100;
        # Create a 100px wide thumbnail

        #or

        $c->stash->{thumbnail}{y}     = 100;
        # Create a 100px tall thumbnail

        $c->stash->{thumbnail}{image} = $image_file_path;
        $c->forward('View::Thumbnail');
    }

DESCRIPTION

Helper for Thumbnail Views.

METHODS

mk_compclass

BUGS

Please report any bugs or feature requests to bug-catalyst-view-thumbnail at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Catalyst-View-GD-Thumbnail. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

SEE ALSO

Catalyst::View::GD::Thumbnail

AUTHOR

Nick Logan (ugexe) <nlogan@gmail.com>

LICENSE AND COPYRIGHT

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.