AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2015.07.31 10:10 "[Tiff] How to use TIFFFieldDataType and TIFFFieldWithTag correctly?", by Romeyke, Andreas
2015.07.31 13:25 "Re: [Tiff] How to use TIFFFieldDataType and TIFFFieldWithTag correctly?", by Olivier Paquet

2015.07.31 10:10 "[Tiff] How to use TIFFFieldDataType and TIFFFieldWithTag correctly?", by Romeyke, Andreas

Hello,

In a function I want to recognize the datatype of given TIFF. I am using this piece of code, but I got datatype "16" instead of "4" as tiffdump prints out (StripByteCounts):

...
 const TIFFField* fip = TIFFFieldWithTag( tif, tag);
 assert( NULL != fip);
 TIFFDataType datatype = TIFFFieldDataType( fip );
...

The "tag" is 279 and the "tif" is a pointer of type TIFF*.

Please, could you point me, where I am going wrong? I am using libtiff 4.03 (Debian Jessie)

Mit freundlichen Grüßen
With best regards,

Andreas Romeyke
--
project member "long-term preservation"

Saxon State- and University Library Dresden (SLUB)
Department 2 (IT), Division 2.3 (network and data security)
Zellescher Weg 18 | 01069 Dresden
phone: +49 351 4677 216
E-Mail: Andreas.Romeyke@slub-dresden.de
http://www.slub-dresden.de/ | @slubdresden