Image::Info::XPM - XPM support for Image::Info
use Image::Info qw(image_info dim); my $info = image_info("image.xpm"); if (my $error = $info->{error}) { die "Can't parse image info: $error\n"; } my $color = $info->{color_type}; my($w, $h) = dim($info);
This modules supplies the standard key names except for SamplesPerPixel and resolution. It also supplies the additional keys:
This is typically 1 or 2.
Always 8
The number of colors the image uses.
Reference to an array of all colors used.
The x-coord of the image's hotspot. Set to -1 if there is no hotspot.
The y-coord of the image's hotspot. Set to -1 if there is no hotspot.
This module requires Image::Xpm
Image::Info, Image::Xpm
For more information about XPM see:
ftp://ftp.x.org/contrib/libraries/xpm-README.html
Jerrad Pierce <belg4mit@mit.edu>/<webmaster@pthbb.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
2 POD Errors
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
You forgot a '=back' before '=head1'
To install Image::TIFF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::TIFF
CPAN shell
perl -MCPAN -e shell install Image::TIFF
For more information on module installation, please visit the detailed CPAN module installation guide.