Project

General

Profile

How can one suppress TIFF error messages on output?

Added by Mikayel Egibyan over 5 years ago

Hi,

Often I get TIFF error messages when importing Exif, please see the screenshot attached.

Is it possible to suppress these without modifying the actual source code (i.e. using a flag).

Thanks,
Mikayel


Replies (3)

RE: How can one suppress TIFF error messages on output? - Added by Robin Mills over 5 years ago

Mikayel

The short answer is no you can't suppress with a flag. I believe those messages are written to errout, so you can redirect them to 2>NUL on Windows or 2>/dev/null on Linux/Mac/Cygwin/MinGW.

I dealt with an instance of this with Sony files: #1143. I suppressed the warning for the exact circumstances in #1143 - however the warning is issued for good reason. If you have images that exhibit this behaviour, I could investigate your files to see if something can be done. However, I've asked you to update http://dev.exiv2.org/issues/1157#note-12 with your solution. I'll look at your files AFTER you have updated 1157.

RE: How can one suppress TIFF error messages on output? - Added by Mikayel Egibyan over 5 years ago

I have already edited the source code, and commented the code that is responsible for warning message.

p.s. I have updated 1157 :)

Mikayel

    (1-3/3)