Image::Info::GIF(3pm)

Image::Info::GIF3pm

Graphics interchange format support for image::info

Usage

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

Overview

This module supplies the standard key names as well as

GIF_Loop

The Netscape-2.0 extension to loop animation sequences is represented by the GIF_Loop 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.

Releases

6 releases since Debian 9 (Stretch); the text changed 5 times.

  1. 9
  2. 10
  3. 11
  4. 12
  5. 13
  6. Arch

From perl-image-info 1.45-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.