Image::Info::GIF(3)
π NAME π
okay so bestie, this is Image::Info::GIF, a User Contributed Perl Documentation page: Graphics Interchange Format support for Image::Info π. That's the whole title vibe, folded in with a bow.
β¨ SYNOPSIS β¨
use Image::Info qw(image_info dim);
my $info = image_info("image.gif");
if (my $error = $info->{error}) {
die "Can't parse image info: $error\n";
}
my $color = $info->{color_type};
my($w, $h) = dim($info);
This is the starter ritual, fr fr: call image_info("image.gif"), check $info->{error}, grab $info->{color_type}, then pull the dimensions with dim($info). It's giving "tiny script, big main-character energy" π.
π DESCRIPTION π
This module supplies the standard key names as well as β and then the manpage gives us this key:
GIF_Loopβ the Netscape-2.0 extension to loop animation sequences is represented by this key for the first image. The value is either"forever"or a number indicating loop count. π
π head1 METHODS π
π§ process_file()
$info->process_file($source, $options);
Processes one file and sets the found info fields in the $info object. literally a one-file wonder π«Ά
π¦ SEE ALSO π¦
Image::Infoβ go say hi to the main module π
mwah π this cutie page is from perl v5.42.0, dated 2024-03-08, and it's the Image::Info::GIF(3) manual. periodt π«Ά
π¦ 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