1Image::Info::WBMP(3)  User Contributed Perl Documentation Image::Info::WBMP(3)
2
3
4

NAME

6       Image::Info::WBMP - WBMP support for Image::Info
7

SYNOPSIS

9        use Image::Info qw(dim);
10        use Image::Info::WBMP qw(wbmp_image_info);
11
12        my $info = wbmp_image_info("image.xpm");
13        if (my $error = $info->{error}) {
14            die "Can't parse image info: $error\n";
15        }
16        my($w, $h) = dim($info);
17

DESCRIPTION

19       wbmp is a magic-less file format, so using Image::Info's "image_info"
20       or "image_type" does not work here. Instead, the user has to determine
21       the file type himself, e.g. by relying on the file suffix or mime type,
22       and use the "wbmp_image_info" function instead.  The returned value
23       looks the same like Image::Info's "image_info" and may be used in a
24       call to the "dim" function.
25

AUTHOR

27       Slaven Rezic <srezic@cpan.org>
28
29
30
31perl v5.30.1                      2020-01-30              Image::Info::WBMP(3)
Impressum