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