AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
September 2007

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date


The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems

Valid HTML 4.01!


2007.09.27 07:34 "add pages in BigTiff", by <>
2007.09.27 10:29 "Re: add pages in BigTiff", by Joris Van Damme
2007.09.27 10:48 "Re: add pages in BigTiff", by Andrey Kiselev

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

Toby, wrote:
> 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 

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
Download your free TIFF tag viewer for windows here: