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?
Set '-quiet' programmicaly
-
- Posts: 2
- Joined: 2017-12-29T02:47:35-07:00
- Authentication code: 1152
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: Set '-quiet' programmicaly
I don't know, but perhaps you should use the SetWarningHandler() function.
snibgo's IM pages: im.snibgo.com
Re: Set '-quiet' programmicaly
You could use the `quiet(true)` to ignore warnings but you should not get any when you use the constructor to read the image.
-
- Posts: 2
- Joined: 2017-12-29T02:47:35-07:00
- Authentication code: 1152
Re: Set '-quiet' programmicaly
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.
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.