Page 1 of 1

Writing 8bit grayscale tiffs with ImageMagick Q16

Posted: 2014-06-10T04:51:01-07:00
by fubert
Hello,
I am using ImageMagick 6.8.8 Q16 for loading 16Bit Tiffs and writing 8Bit Tiffs.

When saving an 8Bit Pixel Tiff image, ImageMagick always creates and 16 Bit Tiff.
Upper 8Bit and lower 8Bit are the same. A 512x512 image needs about 512kb, not 256kb.
How can I write a real 8 bit Tiff ?

Code: Select all

Image image( width,   height,"I", Magick::CharPixel, buffer );
image.compressType(NoCompression);
image.write("d:/tmp/output.tif");
greets,
Dennis

Re: Writing 8bit grayscale tiffs with ImageMagick Q16

Posted: 2014-06-10T09:37:36-07:00
by fmw42
try adding the command line equivalent of -depth 8 via your API

Re: Writing 8bit grayscale tiffs with ImageMagick Q16

Posted: 2014-06-12T04:06:12-07:00
by fubert
It works :-)

Thanks for your quick reply!