Image::Info::WBMP(3pm)

Image::Info::WBMP3pm

Wbmp support for image::info

Usage

 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);

Overview

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.

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

Author

Slaven Rezic <[email protected]>

From perl-image-info 1.45-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.