Image::Info::WBMP - WBMP support for Image::Info
use Image::Info qw(dim); use Image::Info::WBMP qw(wbmp_image_info); my $info = wbmp_image_info("image.xpm"); if (my $error = $info->{error}) { die "Can't parse image info: $error\n"; } my($w, $h) = dim($info);
wbmp is a magic-less file format, so using Image::Info's image_info or image_type does not work here. Instead, the user has to determine the file type himself, e.g. by relying on the file suffix or mime type, and use the wbmp_image_info function instead. The returned value looks the same like Image::Info's image_info and may be used in a call to the dim function.
image_info
image_type
wbmp_image_info
dim
Slaven Rezic <srezic@cpan.org>
To install Image::Info, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Image::Info
CPAN shell
perl -MCPAN -e shell install Image::Info
For more information on module installation, please visit the detailed CPAN module installation guide.