Mournblade
March 10th, 2003, 09:01 AM
Hello !!
I have the following problem: I have difficulties reading tags from a TIFF file using the TIFFGetField() function. I can read without problems the TIFFTAG_IMAGEWIDTH, TIFFTAG_IMAGELENGTH, TIFFTAG_BITSPERSAMPLE, etc... tags, but I can't retrieve the TIFFTAG_STRIPOFFSETS tag. For example, when I try to read this tag, I get the value 3146512, when it should return 2000. What is odd, is that when I use the version 3.5.7 of LibTIFF, I get 3146512, and with the version 3.5.6 beta I get 1265600... and when I use fseek() + fread() I can easily retrieve the value I'm looking for.
Does anyone know what's happening here ? What am I doing wrong ??? I'd be very happy if someone has an idea to solve my problem, as I am quite lost right now. :)
Thanks
I have the following problem: I have difficulties reading tags from a TIFF file using the TIFFGetField() function. I can read without problems the TIFFTAG_IMAGEWIDTH, TIFFTAG_IMAGELENGTH, TIFFTAG_BITSPERSAMPLE, etc... tags, but I can't retrieve the TIFFTAG_STRIPOFFSETS tag. For example, when I try to read this tag, I get the value 3146512, when it should return 2000. What is odd, is that when I use the version 3.5.7 of LibTIFF, I get 3146512, and with the version 3.5.6 beta I get 1265600... and when I use fseek() + fread() I can easily retrieve the value I'm looking for.
Does anyone know what's happening here ? What am I doing wrong ??? I'd be very happy if someone has an idea to solve my problem, as I am quite lost right now. :)
Thanks