Skip Menu |
 

This queue is for tickets about the GD CPAN distribution.

Report information
The Basics
Id: 63728
Status: resolved
Priority: 0/
Queue: GD

People
Owner: Nobody in particular
Requestors: wuhaofenfg [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 2.35
Fixed in: (no value)



Subject: GD V2.35 can't read the frames except for the first one
Download (untitled) / with headers
text/plain 832b
hi, I want to process some gif files by means of module GD. But, the module didn't work very well. my local environment followed as this: os: CentOS release 4.4 (Final) GD version: 2.35 perl version:5.8.5 my test perl commond: ##################################################################### perl -MData::Dump -MGD -e'$gd=GD::Image->newFromGif("banner.gif"); $gifdata=$gd->gif; print $gifdata' > ttt.gif ##################################################################### my test input file "banner.gif" has 5 frames, however, outfile 'ttt.gif' only includes the first frame of input file. Look forward to your reply! Smartshark Shanghai, china 2010/12/08 This module didn't support multi-frame gif file read? if support, how can I get the other frames except for the first frame?
Subject: ttt.gif
Download ttt.gif
image/gif 3.9k
ttt.gif
Subject: banner.gif
Download banner.gif
image/gif 16.3k
banner.gif
Download (untitled) / with headers
text/plain 531b
Show quoted text
> perl -MData::Dump -MGD -e'$gd=GD::Image->newFromGif("banner.gif"); > $gifdata=$gd->gif; print $gifdata' > ttt.gif
Show quoted text
> This module didn't support multi-frame gif file read? if support, how > can I get the other frames except for the first frame?
GD/libgd only supports adding frames, via gifanimbegin/gifanimadd/gifanimend as output methods, but nothing for reading or processing it. This looks like a severe limitation. There must be better libraries to support that. Maybe look at GD::Image::AnimatedGif. -- Reini Urban


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.