Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
scale and reformat images
Perl Perl6
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/Catalyst
t
.gitignore
.travis.yml
Changes
README.md
dist.ini

README.md

Catalyst::Controller::Imager

generate scaled or mangled images by allowing verbose URIs.

A typical URI looks like

http://yoursite.tld/image/ <modifier> / path/to/image.ext

where modifier can be a simple rule like

  • h-42

    if you like to get the image scaled to 42 px

  • w-200

    for width scaling

  • h-200-w-200

    if both is wanted

  • thumbnail

    to get a thumbnail image of configurable size

  • foo

    choose names you like and define what should happen behind the curtain

  • thumbnail-blur-9

    any combination of rules and parameters is allowed

Every image is calculated on-the-fly and optionally cached for faster access next time.

In order to get this module installed you will need the C-libraries for converting various image formats.

On an OS-X box using MacPorts, please install:

  • giflib +no_x11

  • jpeg

  • libpng

  • tiff

On a debian-based Linux Machine, install:

  • libgif4

  • libjpeg8

  • libpng12

  • libtiff4

Something went wrong with that request. Please try again.