Data::FormValidator::Filters::ImageData::FormValidator::Filters::Image is a filter that allows you to shrink incoming image uploads using Data::FormValidator. | |
Download |
Data::FormValidator::Filters::Image Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Cees Hek
- Publisher web site:
- http://search.cpan.org/~ceeshek/CGI-Application-Plugin-TT-1.04/lib/CGI/Application/Plugin/TT.pm
Data::FormValidator::Filters::Image Tags
Data::FormValidator::Filters::Image Description
Data::FormValidator::Filters::Image is a filter that allows you to shrink incoming image uploads using Data::FormValidator. Data::FormValidator::Filters::Image is a filter that allows you to shrink incoming image uploads using Data::FormValidator.SYNOPSIS use Data::FormValidator::Filters::Image qw( image_filter ); # Build a Data::FormValidator Profile: my $my_profile = { required => qw( uploaded_image ), field_filters => { uploaded_image => image_filter(max_width => 800, max_height => 600), }, }; # Be sure to use a CGI.pm object as the form input # when using this filter my $q = new CGI; my $dfv = Data::FormValidator->check($q,$my_profile);Many users when uploading image files never bother to shrink them down to a reasonable size. Instead of declining the upload because it is too large, this module will shrink the image down to a reasonable size during the form validation stage.The filter will try to fail gracefully by leaving the upload as is if the image resize operation fails. Requirements: · Perl
Data::FormValidator::Filters::Image Related Software