Image::Info::WBMP(3)

πŸ’– NAME πŸ’–

okay so you're on the Image::Info::WBMP(3) page from the User Contributed Perl Documentation, and it's literally WBMP support for Image::Info β€” that's the whole assignment, bestie πŸ’….

✨ SYNOPSIS ✨

here's the group-chat recipe, copy-paste style:

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

πŸ¦‹ DESCRIPTION πŸ¦‹

so wbmp is a magic-less file format, which means no cap: using Image::Info's image_info or image_type does not work here. that's not a vibe fail, it's just how this format is built.

instead, the user has to determine the file type himself β€” e.g. by relying on the file suffix or mime type β€” and then use the wbmp_image_info function instead. periodt ✨.

the returned value looks the same like Image::Info's image_info, and it may be used in a call to the dim function. so you can just slide it into dim and keep it moving 🫢.

πŸ‘‘ AUTHOR πŸ‘‘

Slaven Rezic β€” <srezic@cpan.org> πŸ’–


and that's the page, babe 🌈. huge mwah to perl v5.42.0, dated 2024-03-08, and yeah β€” this was Image::Info::WBMP(3), iconic, no notes πŸ’…

πŸ“¦ where this page comes from