I know there exists another post dealing with that problem How to convert colorspace using JMagick? but but there is something I do not understand:
String baseName = "Pictures/";
String fileName = "dragon.gif";
MagickImage imageCMYK;
try {
ImageInfo info = new ImageInfo( baseName + fileName);
info.setColorspace(ColorspaceType.CMYKColorspace);
System.out.println("ColorSpace BEFORE => " + info.getColorspace());
imageCMYK = new MagickImage( info );
System.out.println("ColorSpace AFTER => " +
imageCMYK.getColorspace());
When I create the new MagickImage, the CMYKColorSpace is not kept as I obtain :
ColorSpace BEFORE => 12 (CMYK)
How to correctly convert a picture from CMYK to RGB ?
Thanks.
ColorSpace AFTER => 1 (RGB)