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
- opensuse-leap 16.0: perl-Image-Info 1.440.0-bp160.1.11 Β· Artistic-1.0 OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms