Set '-quiet' programmicaly

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
saharrrrok
Posts: 2
Joined: 2017-12-29T02:47:35-07:00
Authentication code: 1152

Set '-quiet' programmicaly

Post by saharrrrok »

Hello,
I`m trying to read tiff and there is a warning 'Unknown field with tag 292 (0x124) encountered'. How to ignore it in C++ program?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Set '-quiet' programmicaly

Post by snibgo »

I don't know, but perhaps you should use the SetWarningHandler() function.
snibgo's IM pages: im.snibgo.com
User avatar
dlemstra
Posts: 1570
Joined: 2013-05-04T15:28:54-07:00
Authentication code: 6789
Contact:

Re: Set '-quiet' programmicaly

Post by dlemstra »

You could use the `quiet(true)` to ignore warnings but you should not get any when you use the constructor to read the image.
.NET + ImageMagick = Magick.NET https://github.com/dlemstra/Magick.NET, @MagickNET, Donate
saharrrrok
Posts: 2
Joined: 2017-12-29T02:47:35-07:00
Authentication code: 1152

Re: Set '-quiet' programmicaly

Post by saharrrrok »

I solved the problem by using ReadOptions:

ReadOptions options;
options.quiet(true);
readImages(&image_list, path, options);

But is works only with ImageMagick 7, there is no such method in 6 version.
Post Reply