Page 1 of 1
How to set colorspace via MagickWand
Posted: 2009-04-09T15:08:09-07:00
by rmagick
How do I set the colorspace prior to reading an image using the MagickWand API? I tried using
Code: Select all
MagickSetOption(wand, "colorspace", "rgb")
but I'm not having any luck. I see the MagickSetImageColorspace method, but it's not listed in the HTML doc.
Re: How to set colorspace via MagickWand
Posted: 2009-04-09T17:03:03-07:00
by magick
Looks like you need MagickSetColorspace(). We'll need to code it up for the next release, 5.1.0-1. Look for the image analog methods of MagickGetColorspace(), MagickSetImageColorSpace() and MagickGetImageColorSpace(). Note, in 5.1.0-1 you want to use MagickTransformImageColorspace() to transform one image colorspace to another (e.g. RGB to CMYK).
Re: How to set colorspace via MagickWand
Posted: 2009-04-09T17:20:44-07:00
by rmagick
Thanks!