Re: Using -quiet through STL API
Bob Friesenhahn <[email protected]> Wed, 19 Sep 2012 21:14:45 -0500 (CDT)
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
On Thu, 20 Sep 2012, Marten Lehmann wrote: > Hello, > > I'm getting this error on quite a lot of files, while others work fine: > > Magick: : unknown field with tag 33000 (0x80e8) encountered. > `TIFFReadDirectory' @ warning/tiff.c/TIFFWarnings/706 GraphicsMagick no longer produces such annoying warnings. > I found this posting regarding it: > http://www.imagemagick.org/discourse-server/viewtopic.php?f=3&t=18638 > > Although this relates to ImageMagick I was hoping that this might be > relevant for GraphicsMagick, too. Our documents are scanned by a Fujitsu > scanner and the document quality is improved by Kofax Virtual ReScan, so > the "produced on a Kofax scanning station" situation of that post > applies to us as well. > > Now this post also states, that using convert (resp. "gm convert" in > GraphicsMagick) with the option -quiet would disable this error and > working with such documents would be mostly fine in the end. > > How can I trigger this -quiet option when using the STL interface (I'm > actually using python pgmagick, which in turn uses the STL interface)? GraphicsMagick was quieted by commenting out source code so there is no exception. :-) There is still logging of warnings though, but this only appears if logging is enabled. You can build an exception-handling framework to catch the warnings and ignore them before they do any harm. See the documentation at "http://www.graphicsmagick.org/Magick++/Exception.html". The sample code there even mentions TIFF warnings. I am not sure how you would pass a -quiet option into ImageMagick. Soon it will be 10 years since the split. Feel free to convert to GraphicsMagick. You will be welcomed. Bob -- Bob Friesenhahn [email protected], http://www.simplesystems.org/users/bfriesen/ GraphicsMagick Maintainer, http://www.GraphicsMagick.org/ ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://ad.doubleclick.net/clk;258768047;13503038;j? http://info.appdynamics.com/FreeJavaPerformanceDownload.html