我有一个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.
谢谢!
最佳答案 这些是可以使用libtiff库定义的自定义标记:
http://www.remotesensing.org/libtiff/addingtags.html
它们可能是EXIF标签:
http://www.awaresystems.be/imaging/tiff/tifftags/privateifd/exif.html
这些是libtiff的已知标签:
http://trac.imagemagick.org/browser/tiff/trunk/libtiff/tiff.h#L148
由于新定义包括类型和计数,您可能会猜测这些标记的含义.您还可以运行exiftool来检查未知的TIFF标记:
$exiftool -htmldump sample.tif> /tmp/dump.html; firefox /tmp/dump.html