
Thread
2008.02.02 18:50 "[Tiff] Problem with large tiff images", by Jean-Michel FRECINAT
Hi,
I am a developer in c# and c++ and i am working on tiff images. But i am a problem when i try to save image (22000x9000 pixels and 30000x10000 pixels) i have an error "No space to
output buffer".
How to save a large tiff file with libtiff?
I use:
unsigned char* scanline_data = (unsigned char*)_TIFFmalloc(exportWidth*spp*sizeof(unsigned char));
if(scanline_data != NULL)
{
for(unsigned long row= 0 ; row < height ; row++)
{
memcpy(scanline_data,raster+row*exportWidth*spp,exportWidth*spp);
TIFFWriteScanline(output,scanline_data, row,0);
}
_TIFFfree(scanline_data);
}
TIFFFlush(output);
TIFFClose(output);
_TIFFfree(raster);
help me please.
Best regards.
_________________________________________________________________
Microsoft vous offre un logiciel pour classer, retoucher et partager vos photos!
http://www.windowslive.fr/galerie/