github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

jonallen / Catalyst-View-Thumbnail

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 4
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

Catalyst view to produce image thumbnails — Read more

  cancel

http://perl.jonallen.info/projects/catalyst-view-thumbnail

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Added debug messages, fixed scaling bug where source aspect > thumbnail 
aspect 
jonallen (author)
Fri Sep 04 08:24:49 -0700 2009
commit  2a175544ce24c061bddaa61cb9c255fd44ac128e
tree    979cc73eba52a2338f11feb9543031ceb1fc5cf2
parent  82f752e9c15848309dc17ca9e8e618a5e657f602
Catalyst-View-Thumbnail /
name age
history
message
file .gitignore Loading commit data...
file Changes
directory LICENSES/
file MANIFEST
file META.yml
file Makefile.PL
file README
file ignore.txt
directory inc/
directory lib/
directory t/
README
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 info@pennysarcade.co.uk
    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.

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server