# phpman > man > Image::Info::WBMP(3pm)

## NAME
    [Image::Info::WBMP](https://www.chedong.com/phpMan.php/perldoc/Image%3A%3AInfo%3A%3AWBMP/markdown) - WBMP support for [Image::Info](https://www.chedong.com/phpMan.php/perldoc/Image%3A%3AInfo/markdown)

## SYNOPSIS
     use [Image::Info](https://www.chedong.com/phpMan.php/perldoc/Image%3A%3AInfo/markdown) qw(dim);
     use [Image::Info::WBMP](https://www.chedong.com/phpMan.php/perldoc/Image%3A%3AInfo%3A%3AWBMP/markdown) 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);

## DESCRIPTION
    wbmp is a magic-less file format, so using [Image::Info](https://www.chedong.com/phpMan.php/perldoc/Image%3A%3AInfo/markdown)'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](https://www.chedong.com/phpMan.php/perldoc/Image%3A%3AInfo/markdown)'s "image_info" and may be used in a call to the "dim" function.

## AUTHOR
    Slaven Rezic <<srezic@cpan.org>>

