2004.11.22 06:32 "[Tiff] Unexpected TIFF output", by Zac Bond

2004.11.22 09:25 "Re: [Tiff] Unexpected TIFF output", by Eric Vergnaud

Why do you write:

uint32* binimage = (uint32*) _TIFFmalloc(imagesize * sizeof(uint32));

Instead of:

uint8* binimage = (uint8*) _TIFFmalloc(imagesize * sizeof(uint8));

What your code says is you're expecting TIFFLib to convert an RGBA image to an 8 bit grayscale one when TIFFLib knows knows nothing about your original pixels.

Eric VERGNAUD - JLynx Software
Cutting-edge technologies and
services for software companies
web: http://www.jlynx.com