Re: tiff with jpeg compression
Bob Friesenhahn <[email protected]> Thu, 25 Mar 2004 18:57:33 -0600 (CST)
| Newsgroups | gmane.comp.video.graphicsmagick.bugs |
|---|---|
| Message-ID | <Pine.GSO.4.44.0403251847300.11186-100000@scooby.simplesystems.org> |
On Thu, 25 Mar 2004, Daniel Adam wrote: > hello > at first - thanks for your reply. i didn't know, that graphicsmagick > realy crashs with this pic, i also got a exception. (i forgot to say > that i'm using gm-1.0.4 and work with a pentium 4 - 2,5ghz and winxp) I am not sure what software is to blame for the crash. The Solaris system where GM crashes while reading the image is using an older version of libtiff than the FreeBSD system where it doesn't crash. > >Warnings from libtiff are normal due to vendor-specific tags. If you > don't care about them, you should ignore > >the error. For Magick++, this consists of adding a try/catch block > around the read() call which catches > >Magick::Warning exceptions and ignores them. > > thats why i wrote you - i actually catch the "ErrorFileOpen", "Warning", > "Error" and for the rest the "(...)" exception (including "exception") > because i'm not shure, what else might be thrown by ping. i noticed, > that ping didn't throw a "warning" but a "exception" or something else > "(...)". thats why my program aborted and i got alerted. Magick++ only throws exceptions that derive from Magick::Exception (which itself derives from std::exception). Any other exceptions are thrown by the C++ library or some other code. A handy thing to do if you use the 1.1 development code-base (soon to be a released code-base) is to define the environment variable MAGICK_DEBUG=exception and then GraphicsMagick will log whenever an internal exception is reported. This can be useful in order to understand an error report. you can also use MAGICK_DEBUG=warning or MAGICK_DEBUG=error to log warnings or errors. Bob ====================================== Bob Friesenhahn [email protected] http://www.simplesystems.org/users/bfriesen ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click