Image::Resize::Path - A lightweight wrapper to GD for mass image resizing
version 0.01
use Image::Resize::Path;
my $image_obj = Image::Resize::Path->new; $image_obj->supported_images(['jpg']);
my $path = './test_data';
$test_obj->src_path('/src'); $test_obj->dest_path('/dest'); $test_obj->resize_images(100,100);
Inspired by Image::Resize
sub new()
Purpose: Constructor Input: Ref/String of class Hash of parameters Output: Ref to instance
dest_path()
Purpose: An accessor for dest_path. This must be set. Input: A string/path value. Output: The current destination path.
resize_images()
Purpose: Resizes images in a directory. Input: Ref/String of class. Output: An array ref of images resized.
supported_images()
Purpose: An accessor to for supported_images. Input: Ref of self. Array ref of supported image extensions. Output: Hash ref of support image extensions.
src_path()
Purpose: An accessor for dest_path. This must be set. Input: A string/path value. Output: The current source path.
Logan Bell <logan@orchardtech.com>
This software is copyright (c) 2011 by Logan Bell.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Image::Resize::Path, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::Resize::Path
CPAN shell
perl -MCPAN -e shell install Image::Resize::Path
For more information on module installation, please visit the detailed CPAN module installation guide.