Re: Re: Corrupted image

Bob Friesenhahn <[email protected]> Wed, 31 Aug 2005 20:44:17 -0500 (CDT)
Newsgroups gmane.comp.video.graphicsmagick.apis
Message-ID <[email protected]>
On Thu, 1 Sep 2005, Michal Kowalczuk wrote:

> On 2005-08-31, Bob Friesenhahn <[email protected]> wrote:
>
>> GraphicsMagick does its best to detect corrupted images and return an
>> error to the user.  If it did not do this, then it could be used to
>> accidentally convert many corrupted images into legal images.  Then
>> the problem would be multiplied.
>
> So there is no way to force GraphicsMagick to read such an image?

Not without editing the source code.  You can see which line of code 
reports the error by doing

   gm convert -debug exception file.gif file.miff

since this will tell you where the exception was reported.

Recently additional steps were taken to shore up the decoders since 
apparently some people have been uploading GIF "bomb" images to 
automated web sites in order to try to take them down.

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


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf