Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.6 / 3....
  • Linux Kernel 3.0.82 LTS...
  • KDE Software Compilatio...
  • PulseAudio 4.0
  • Wireshark 1.10.0
  • NetworkManager 0.9.8.2
  • LibreOffice 3.6.6 / 4.0...
  • SystemRescueCd 3.7.0
  • Linux Kernel 3.10 RC6
  • Ubuntu Tweak 0.8.5
  • Home > Linux > Programming > Perl Modules

    Apache::Imager::Resize 0.11

    Download button

    No screenshots available
    Downloads: 362  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    William Ross | More programs
    Perl Artistic License / FREE
    August 11th, 2009, 23:54 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Apache::Imager::Resize description

    Fixup handler that resizes and crops images on the fly, caching the results, and doesn't require ImageMagick.

    Apache::Imager::Resize is a simple fixup class that only does one job: it resizes images before they're delivered. All you have to do is append either a width and/or a height parameter to any image file address, and AIR will make sure that an appropriately shrunken image file is returned. It caches the results of each operation, so the first request might take a little while but subsequent similar requests should be very quick.

    There are other modules that you could do this with: see the links at the bottom of this pod. If your requirements might include more complicated transformations, or you're running mod_perl behind a thin proxy, you're probably better off with Apache::ImageMagick. There are also several solutions for thumbnailing, but if your only requirement is to be able to show images at an arbitrary size in a simple, clean way, this module might be for you.

    The handler uses Imager to do the work. I intend to produce a proper general-purpose Apache::Imager package, if nobody else does, so this will end up being a special case with a simplified interface, and will probably live alongside an Apache::Imager::Translate and other useful shortcut modules.

    SYNOPSIS

     < Files "*.jpg" >
     PerlFixupHandler Apache::Imager::Resize
     ImgResizeCacheDir '/imgcache'
     < /Files >
     
     # or
     
     < Location "/liveimages" >
     PerlHandler Apache::Imager::Resize
     ImgResizeNoCache on
     ImgResizeWidthParam 'w'
     ImgResizeHeightParam 'h'
     < /Location >

     # and on a web page somewhere:

     < img src="image.jpg?w=300&h=200" width="300" height="200" >



    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    crop images | resize images | Perl module | resize | crop | image

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM