Closed GoogleCodeExporter closed 9 years ago
Irritating, isn't it?
TIFFReadDirectory() is the only way I know to do the counting. It would be
nice if the Tiff functions could take a memory buffer, but ... (you can always
google the query).
I had to write fopenTiff() just to count the number of files using a file
stream. (See my comments there).
Dan
Original comment by dan.bloo...@gmail.com
on 26 May 2014 at 12:44
Well, you can also write it to a tmpfile and read with tiffGetCount(fp,
&npages):
fp = tmpfile();
fwrite(cdata, 1, size, fp);
rewind(fp);
tiffGetCount(fp, &npages);
Original comment by dbloomb...@google.com
on 29 May 2014 at 8:58
Original issue reported on code.google.com by
zde...@gmail.com
on 25 May 2014 at 7:54