Apache2::ImageRenderFilter - Used to resize images on the fly to adapt to the screen size of the mobile device
Apache2::RequestRec
Apache2::RequestUtil
Apache2::SubRequest
Apache2::Log
Apache2::Filter
APR::Table
LWP::Simple
Image::Resize
Apache2::Const
File::Copy;
This module have the scope to manage with WURFLFilter.pm module the images for mobile devices.
For more details: http://www.idelfuschini.it/apache-mobile-filter-v2x.html
An example of how to set the httpd.conf is below:
PerlSetEnv MOBILE_HOME server_root/MobileFilter
This indicate to the filter where put the transformated images (cache directory) this directory must be writeable
PerlSetEnv ResizeImageDirectory /transform
PerlModule Apache2::WURFLFilter
PerlTransHandler +Apache2::WURFLFilter
This is indicate to the filter were are stored the high definition images
<Location /mobile/*
SetHandler modperl
PerlInputFilterHandler Apache2::ImageRenderFilter
</Location
NOTE: this software need wurfl.xml you can download it directly from this site: http://wurfl.sourceforge.net or you can set the filter to download it directly.
Mobile Demo page of the filter: http://apachemobilefilter.nogoogle.it (thanks Ivan alias sigmund)
Demo page of the filter: http://apachemobilefilter.nogoogle.it/php_test.php (thanks Ivan alias sigmund)
Idel Fuschini (idel.fuschini [at] gmail [dot] com)
To install Apache2::WURFLFilter, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache2::WURFLFilter
CPAN shell
perl -MCPAN -e shell install Apache2::WURFLFilter
For more information on module installation, please visit the detailed CPAN module installation guide.