1Image::Info::GIF(3) User Contributed Perl Documentation Image::Info::GIF(3)
2
3
4
6 Image::Info::GIF - Graphics Interchange Format support for Image::Info
7
9 use Image::Info qw(image_info dim);
10
11 my $info = image_info("image.gif");
12 if (my $error = $info->{error}) {
13 die "Can't parse image info: $error\n";
14 }
15 my $color = $info->{color_type};
16
17 my($w, $h) = dim($info);
18
20 This module supplies the standard key names as well as
21
22 GIF_Loop
23 The Netscape-2.0 extension to loop animation sequences is
24 represented by the GIF_Loop key for the first image. The value is
25 either "forever" or a number indicating loop count.
26
27 head1 METHODS
28
29 process_file()
30 $info->process_file($source, $options);
31
32 Processes one file and sets the found info fields in the $info object.
33
35 Image::Info
36
37
38
39perl v5.32.0 2020-07-28 Image::Info::GIF(3)