Free Support Forum - aspose.com

TIFFReadDirectory: Warning, Unknown field with tag ##### (0x####) encountered

We use our own custom tiff tags in our workflow.
Is there a setting to suppress these warnings?
Thank you

@rmckewen,

Thanks for your query.

Do you perform barcode recognition in TIFF images via Aspose.BarCode APIs. If true, please paste your runnable sample code and attach image file(s), we will check your issue.

PS. please zip the image files prior attaching here.

@Amjad_Sahi
I believe I do, I am using the following lines to read qr codes

*System::SharedPtr<BarCodeReader> reader = System::MakeObject<BarCodeReader>(file, DecodeType::QR);*
  • while (reader->Read()) {*
  •    ...*
    
  • }*
    a runnable sample may be a little difficult because I am using this all from python 3 via a c++ extension.
    test_chart_obf.zip (8.6 MB)

@rmckewen,
We have understood the issue but we need to look into it more. We have logged the issue in our database for investigation and for a fix. Once, we will have some news for you, we will update you in this topic.

This issue has been logged as

BARCODECPP-422 – TIFFReadDirectory: Warning, Unknown field with tag ##### (0x####) encountered

Hello @rmckewen
Underlying libtiff writes those messages to the stderr stream.
There is a quick workaround if you don’t use this stream in your app.
yourapp.exe 2>nul
or
yourapp 2>/dev/null
on Windows and Linux correspondingly.

Does it work for you?

Hi @eldaryakupov
I am aware of such work arounds, I’ll probably end up suppressing it inside the c++ code. by the time it gets to python it seems to be coming from stdout.
It isn’t to much of a bother now while I am only testing.
It would be nice if there was a built in way to suppress it is all.

@rmckewen,

Thanks for your feedback.

As the ticket is still Open, so we will continue to evaluate your issue.

Once we figure it out or we have some other updates/details, we will update you.