Page 1 of 1

MagickReadImage + MagickWriteImage

Posted: 2010-05-16T06:40:25-07:00
by rivierakid
Hi,

I'm new to ImageMagick API. I try to use imagemagick as a conversion tool in my app. I have a problem with color space & bpp using this simple code:

Code: Select all

MagickWandGenesis();
MagickWand *wand = NewMagickWand();
MagickReadImage(wand, "test.tif")
MagickWriteImage(wand, "out.tif");
wand = DestroyMagickWand(wand);
MagickWandTerminus();
test.tif is rgb (8bpp) image.
out.tif is grayscale (8bpp) image.

Why is the out.tif in grayscale???

Note: I'm using VS2008 x16, 16bit imagemagick version.

Thanks for help.
Martin