Catalyst::Controller::Imager

Generate scaled or mangled images
Download

Catalyst::Controller::Imager Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Publisher Name:
  • Wolfgang Kinkeldei
  • Publisher web site:
  • http://search.cpan.org/~wki/

Catalyst::Controller::Imager Tags


Catalyst::Controller::Imager Description

Generate scaled or mangled images Catalyst::Controller::Imager is a Catalyst Controller that generates image files in any size you request and optionally converts the image format. Images are taken from a cache directory if possible and desired or generated on the fly. The Cache-directory has a structure that is very similar to the URI scheme, so a redirect rule in your webserver's setup would do this job also.SYNOPSIS # use the helper to create your Controller script/myapp_create.pl controller Image Imager # DONE. READY FOR USE. # Just use it in your template: # will deliver a 200 pixel wide version of some_image.png as jpg < img src="/image/w-200/some_image.png.jpg" / > # will deliver a 210 by 300 pixel sized image without conversion # (empty areas will be white) < img src="/image/w-210-h-300/other_image.jpg" / > # will deliver a 80 by 80 pixel sized image # (empty areas will be white) < img src="/image/thumbnail/other_image.jpg" / > # define a modifier of your own < img src="/image/blur-9/some_image.png.jpg" / > # your modifier plus a predefined one < img src="/image/thumbnail-blur-9/some_image.png.jpg" / > # same thing as above < img src="/image/blur-9-thumbnail/some_image.png.jpg" / > # in your Controller you then need: sub want_blur :Action :Args(1) { ### do something to get a blurred image } Requirements: · Perl


Catalyst::Controller::Imager Related Software