Re: Read GIF file descriptor does not work in PerlMagick

Bob Friesenhahn <[email protected]> Thu, 14 Aug 2003 10:19:29 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.bugs
Message-ID <Pine.GSO.4.44.0308141016120.26224-100000@scooby.simplesystems.org>
On Thu, 14 Aug 2003, Esteban Fernandez Stafford wrote:

> Hello all,
>
> I sent this email to the ImageMagick list a few months ago. Now I
> wanted to try GraphicsMagick and I found the same bug again.
>
> I am trying to do some image transformations on Gifs and Jpegs. It is
> very important that I can read the files from an open file descriptor
> and so far I am not having much success. Following is the program I am
> using to get started with ImageMagick perl API. It only reads an
> image, flips it and saves it to another file.
>
> The problem is that when I try to transform a GIF file $image->Read
> does not load the image and does no complain about anything. Then
> $image->Flip complains Exception 410: No images defined (Flip).
>
> First I thought my code was wrong, but the program works with JPEG
> images very well.
>
> Then I thought it might be that the GIFs I was using where corrupt or
> wrong in some way. But then I tried to use $image->Read (set $open=0
> in the program below) with the file itself (not the open descriptor)
> and it worked!

I will take a look.  I will make sure that there is a test in the
PerlMagick test suite for this.

Bob
======================================
Bob Friesenhahn
[email protected]
http://www.simplesystems.org/users/bfriesen



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01