Image::ParseGIF 0.2 review

Download
by rbytes.net on

Image::ParseGIF can parse a GIF image into its compenent parts. SYNOPSIS use Image::ParseGIF; $gif = new Image::ParseGIF

License: Perl Artistic License
File size: 18K
Developer: Benjamin Low and Ed Halley
0 stars award from rbytes.net

Image::ParseGIF can parse a GIF image into its compenent parts.

SYNOPSIS

use Image::ParseGIF;

$gif = new Image::ParseGIF ("image.gif") or die "failed to parse: $@n";

# write out a deanimated version, showing only the first frame
$gif->deanimate(0);

# same again, manually printing each part
print $gif->header;
print $gif->part(0);
print $gif->trailer;
# or, without passing scalars around:
$gif->print_header;
$gif->print_part(0);
$gif->print_trailer;


# send an animated gif frame by frame
# - makes for a progress bar which really means something
$gif = new Image::ParseGIF ("progress.gif") or die "failed to parse: $@n";

$gif->print_header;

$gif->print_percent(0.00); # starting...
do_some_work_stage1();

$gif->print_percent(0.10); # 10% complete
do_some_work_stage2();

$gif->print_percent(0.25); # 25% complete
do_some_work_stage3();

$gif->print_percent(0.70); # 70% complete
do_some_work_stage4();

$gif->print_percent(1.00); # done!

$gif->print_trailer;

This module parses a Graphics Interchange Format (GIF) image into its component 'parts'. A GIF is essentially made up of one or more images - multiple images typically are used for animated gifs.

Requirements:
Perl

Image::ParseGIF 0.2 keywords