2011.03.21 16:09 "[Tiff] Thunder Decoder Vulnerability", by Frank Warmerdam

2011.05.20 12:22 "Re: [Tiff] Failed to allocate memory", by Thomas Ellett

Hi John,

Thanks for the suggestion, unfortunately I come out with the same issue, (although I also get a 'TIFF file does not contain page 0' issue as well) probably because the routine also calls the libtiff library?


-----Opprinnelig melding-----

Fra: jcupitt@gmail.com [mailto:jcupitt@gmail.com]
Sendt: 20. mai 2011 11:15
Til: Thomas Ellett
Kopi: tiff@lists.maptools.org

Emne: Re: [Tiff] Failed to allocate memory

Hi Thomas,

On 20 May 2011 09:26, Thomas Ellett <Thomas.Ellett@statkart.no> wrote:

> The issue I'm having is processing a 2.7 gb single page tiff. I wanted to use (tried gdal 1.7.0b2 and 1.8.0) on this to first tile and then gdal_retile

eventually pyramid the resultant images.

Have you tried using vips to make the pyramids? It's quite commonly used to make pyramids for iipsrv and friends.

There's a windows binary built against libtiff4 here:


You need vips-dev-tiff4-7.24.5.zip. If I run this on my laptop with:

$ time vips.exe im_copy bigger8.v bigger.tif:,tile,pyramid,,,,8 > build.log

real    11m35.835s
user    0m40.080s
sys     0m49.710s

I get a 9gb tif pyramid and it seems to work OK. You'll need a program that can read huge tiff pyramids as well, of course.

Documentation for the strange tiff format string here:

http://www.vips.ecs.soton.ac.uk/supported/7.24/doc/html/libvips/VipsForm at.html#im-vips2tiff

Leave the ",,,8" off the end of the string and it'll write smalltiff, though of course your filesizes will be limited.