gitpan / catalyst-view-thumbnail Goto Github PK
View Code? Open in Web Editor NEWRead-only release history for Catalyst-View-Thumbnail
Home Page: http://metacpan.org/release/Catalyst-View-Thumbnail
Read-only release history for Catalyst-View-Thumbnail
Home Page: http://metacpan.org/release/Catalyst-View-Thumbnail
NAME Catalyst::View::Thumbnail - Catalyst view to resize images for thumbnails SYNOPSIS Create a thumbnail view: script/myapp_create view Thumbnail Thumbnail Then in your controller: sub thumbnail :Local :Args(1) { my ($self, $c, $image_id) = @_; my $image_obj = $c->model('MyApp::Images')->find({id=>$image_id}) or $c->detach('/default'); $c->stash->{x} = 100; # Create a 100px square thumbnail $c->stash->{y} = 100; $c->stash->{image} = $image_obj->data; $c->forward('View::Thumbnail'); } DESCRIPTION Catalyst::View::Thumbnail resizes images to produce thumbnails, with options to set the desired x or y dimensions (or both), and specify a zoom level and scaling type. Full documentation is available after installation by typing perldoc Catalyst::View::Thumbnail INSTALLATION To install this module, run the following commands: perl Makefile.PL make make test make install SEE ALSO Catalyst::View::Thumbnail tutorial (with examples): http://perl.jonallen.info/writing/articles/creating-thumbnails-with-catalyst AUTHOR Jon Allen (JJ) - http://perl.jonallen.info SUPPORT Commercial support, customisation, and training for this module is available from Penny's Arcade Limited - contact [email protected] for details. COPYRIGHT & LICENSE Copyright (C) 2009 Jon Allen (JJ). This module is free software; you can redistribute it and/or modify it under the same terms as Perl 5.10.0. For more details, see the full text of the licenses in the directory LICENSES. This module is distributed in the hope that it will be useful, but it is provided Òas isÓ and without any express or implied warranties.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.