Re: Using -quiet through STL API
Marten Lehmann <[email protected]> Mon, 24 Sep 2012 22:24:54 +0200
| Newsgroups | gmane.comp.video.graphicsmagick.apis |
|---|---|
| Message-ID | <[email protected]> |
Hi, you are totally right: "GraphicsMagick no longer produces such annoying warnings." When I installed the python module pgmagick I expected it to depend on libgraphicsmagick++, but as it uses the ImageMagick interface, it seemed to be happy with libmagick++, so I didn't notice the fact, that I accidentally used ImageMagick on the dev machine instead of GraphicsMagick. Everything is working fine now after I removed all imagick-magick packages, installed just libgraphicsmagick++3 and reinstalled python pgmagick (no more *core, *wand and whatever packages...). Thanks and kind regards Marten On 20.09.2012 04:14, Bob Friesenhahn wrote: > 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 ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/