NAME
Data::Validate::Image - Validates an image and returns basic info
SYNOPSIS
use Data::Validate::Image;
my $validator = Data::Validate::Image->new();
my $image_info = $validator->validate( '/path/to/image' );
if ( defined( $image_info ) ){
#valid image, do things here
} else {
#invalid image
}
DESCRIPTION
pretty simple image validator class. returns hash of image properties on success,
undef for invalid images
hash properties are
'width' => image width,
'height' => image height,
'size' => image filesize (KB),
'mime' => image mime type,
'file_ext' => *correct* file extenstion,
'frames' => frame count,
'animated' => 1 || 0,
METHODS
validate
returns image info or undef for invalid image
SUPPORT
Bugs should always be submitted via the CPAN bug tracker
For other issues, contact the maintainer
AUTHORS
n0body <n0body@thisaintnews.com>
SEE ALSO
http://thisaintnews.com, Image::Info
LICENSE
Copyright (C) 2011 by n0body http://thisaintnews.com/
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.