Git Product home page Git Product logo

catalyst-view-thumbnail's Introduction

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.

catalyst-view-thumbnail's People

Contributors

jonallen avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.