2007.09.27 07:34 "[Tiff] add pages in BigTiff", by

2007.09.27 10:29 "Re: [Tiff] add pages in BigTiff", by Joris Van Damme

Toby,

I try to append new pages in a bigtif file. While my tiff is under 4Go size,
this work well. But after this size, number of page restart to 1. I can append
others pages and my bigtiff grow up. I have a 6.8Go bigtiff size file with 2
pages. But indeed there are 5 pages. Why??

>From a quick look at your code, and the code called, I've the following questions...

  1. The problem seems to stem from an incorrect return value of the call to TIFFNumberOfDirectories inside your IM_Tools::append. Can you confirm that?
  2. Do you use memory mapped file acces? It depends not only on your code, as you don't mention either the M or m flag, but also on the platform dependent layer and your build's configuration, so I cannot tell. Can you add the 'm' flag to your first TIFFOpen call inside your IM_Tools::append that opens the file to append to, and see if that makes a difference? If so, the cause was failure because you just can't expect to memory map a 6 gigabyte file in a 4 gigabyte address space. I'd recommend against memory mapping for any codec action anyway, anytime.
  3. If 2) doesn't lead to the solution, could you please interface with the error/warning callback functions and tell me what you get there?

Best regards,

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html