NAME

Image::Info::XS - Extract meta information from image files. XS implementation of Image::Info.

SYNOPSIS

use Image::Info::XS qw(image_info image_type);

my $info = image_info('image.jpg');
if (!$info) 
{
  die "Can't parse image info\n";
}
my $color = $info->{'color_type'};

my $type = image_type("image.jpg");
if (!$type) 
{
   die "Can't determine file type\n";
}

die "No gif files allowed!" if $type eq 'GIF';

DESCRIPTION

This module provide functions to extract various kind of meta information from image files.

METHODS

image_info( $file )

image_info( \$imgdata )

image_type( $file )

image_type( \$imgdata )

Supported Image Formats

BMP GIF ICO JPEG PNG TIFF PSD

SEE ALSO

Image::Info

AUTHOR

Dmitry Kosenkov, <d.kosenkov AT rambler-co.ru>, <junker AT front.ru>

COPYRIGHT AND LICENSE

Copyright (C) 2011 by Dmitry Kosenkov

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.14.2 or, at your option, any later version of Perl 5 you may have available.