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
ewanchapman
Posts: 1
Joined: 2019-08-10T00:13:54-07:00
Authentication code: 1152

Set '-quiet' programmicaly

Post by ewanchapman »

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?
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

Re: Set '-quiet' programmicaly

Post by magick »

To ignore warnings, set the warning handler to NULL:

Code: Select all

MagickCore::SetWarningHandler((MagickCore::WarningHandler) NULL);
Post Reply