BigTIFF & libtiff library version

Yves Sucaet sucaet at
Mon Jun 18 04:49:05 EDT 2012

Hi list,

Out of curiosity: Why isn't OpenSlide already using this new version 


From:   Adam Goode <adam at>
To:     Agelos Pappas <agelos at>
Cc:     openslide-users at
Date:   18-06-12 00:49
Subject:        Re: BigTIFF & libtiff library version
Sent by: at

If you want bigtiff functionality, please use libtiff 4.0 (or greater). 
Don't bother with the old/experimental version from
On Jun 17, 2012 3:23 PM, "Agelos Pappas" <agelos at> wrote:

I was trying to compile OpenSlide using the unofficial BigTIFF modified
version of libtiff available here:

in order to add support for BigTIFF in OpenSlide. Although I was able to
compile BigTIFF and then OpenSlide successfully, I was getting runtime
errors signifying that there was a problem in the libtiff library.
I tried to test the library with an Aperio SVS file that previously
worked fine, but was now giving errors.

Specifically the problem was in this call:
openslide-hash.c, Line 117:

if (TIFFGetField(tiff, TIFFTAG_TILEBYTECOUNTS, &sizes) == 0)

Even though TIFFGetField returned a correct value, the sizes pointer did
not receive a value. The TIFFGetField function is implemented in
tifflib, in the file tif_dir.c:

This is an extract from libtiff
            _TIFFFillStriles( tif );
            *va_arg(ap, uint64**) = td->td_stripbytecount;

in the modified BigTIFF libtiff version, the equivalent implementation
looks like this (tif_dir.c):
            *va_arg(ap, uint32**) = td->td_stripbcsbuf;

As you can see, the call to _TIFFFillStriles( tif ) is missing from the
BigTIFF version and the function is nowhere defined. Thus OpenSlide does
not work when built against the BigTIFF version.
Does OpenSlide use a modified libtiff version? Has anyone else managed
to add support for BigTIFF? Is there an official version of libtiff
supporting BigTIFF?


openslide-users mailing list
openslide-users at
openslide-users mailing list
openslide-users at

WARNING: This e-mail, including any attachments, may contain CONFIDENTIAL INFORMATION, including privileged and/or health information.  It is for the sole use of the intended recipients. Any unauthorized copying, disclosure, distribution, reproduction, use or retention of this email or the information in it, is strictly FORBIDDEN. If you are not an intended recipient, please notify the sender immediately (REPLY this e-mail) and permanently DELETE the related e-mail.  Please be aware that this email and replies to it may be monitored by the sender's company for quality assurance, policy compliance and/or security purposes.
-------------- next part --------------
An HTML attachment was scrubbed...

More information about the openslide-users mailing list