MagickReadImage + MagickWriteImage

The MagickWand interface is a new high-level C API interface to ImageMagick core methods. We discourage the use of the core methods and encourage the use of this API instead. Post MagickWand questions, bug reports, and suggestions to this forum.
Post Reply
rivierakid

MagickReadImage + MagickWriteImage

Post 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
Post Reply