4

我有一个 geotiff 文件,我正在使用 QPixmap::load() 将其加载到 QPixmap 中。我多次收到以下警告打印到控制台。但是,直接使用 libtiff 会在没有警告的情况下打开它。

关于如何减轻 QT 中这些难看的警告的任何想法?

TIFFReadDirectory: Warning, foo: unknown field with tag 33550 (0x830e) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 33922 (0x8482) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34735 (0x87af) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34736 (0x87b0) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34737 (0x87b1) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 33550 (0x830e) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 33922 (0x8482) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34735 (0x87af) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34736 (0x87b0) encountered.
TIFFReadDirectory: Warning, foo: unknown field with tag 34737 (0x87b1) encountered.

谢谢!

4

1 回答 1

2

These are custom tags which can be defined with the libtiff library:
http://www.remotesensing.org/libtiff/addingtags.html

They are probably EXIF tags:
http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html

These are the known tags to libtiff:
http://trac.imagemagick.org/browser/tiff/trunk/libtiff/tiff.h#L148

Since the new definitions include type and count, you may guess, what these tags mean. Also you can run exiftool to examine unknown TIFF tags:
$ exiftool -htmldump sample.tif > /tmp/dump.html; firefox /tmp/dump.html

于 2013-01-02T20:45:59.467 回答