2014.01.20 16:03 "[Tiff] R: WRITE BIGTIFF RGB", by

2014.01.20 16:03 "[Tiff] R: WRITE BIGTIFF RGB", by

Dear Oliver,

Thanks for your interesting answer.

• Where did you get your libtiff?
o I use the libtiff from http://bigtiff.org.

•       Try printing sizeof(uint64) to make sure it really is 8. 
o       I try to use sizeof(uint64) in this way, but it doesn’t resolve the 

problem.

BYTE* buffer_strip=(BYTE *)(_TIFFmalloc((altezzatile)*image_tiff_width*sizeof (uint64)));//ptr strip

• If you built libtiff yourself, make sure you used tif_win32.c and not
tif_unix.c.
o I’m sure to use tif_win32.c

•       Does it work if you use no compression instead of jpeg? 
o       Yes, If I use COMPRESSION_NONE it works, but there’s the same problem: when 

I open the output’s image, there is an error message: “invalid or unsupported tif file”

• Does it really break only when you reach 4GB file size, meaning it works with a BigTIFF smaller than that?

o Yes, It works with TIFF smaller 4GB and the output’s image is correct, but if the uncompressed image is over 4GB I can’t open my output image.

Mary

Da: Olivier Paquet [mailto:olivier.paquet@gmail.com]
Inviato: lunedì 20 gennaio 2014 15:19
A: marilenatr@libero.it

Cc: TIFF mailing list; even.rouault@mines-paris.org Oggetto: Re: [Tiff] WRITE BIGTIFF RGB

On Mon, Jan 20, 2014 at 3:46 AM, marilenatr@libero.it <marilenatr@libero.it> wrote:

Hi,

I’m italian and excuse me for my elementary english.
I’m C++ programmer and I’m built a code to create BIGTIFF.
I use Visual Studio Express 2012.

I installed the libtiff-4.1, but I’ve some problem to setting the bigtiff over 4GB, in fact the output image done an error when I try to open:

Can you help me, please?

Where did you get your libtiff? Try printing sizeof(uint64) to make sure it really is 8. If you built libtiff yourself, make sure you used tif_win32.c and not tif_unix.c. Does it work if you use no compression instead of jpeg? Does it really break only when you reach 4GB file size, meaning it works with a BigTIFF smaller than that?

Olivier