I convert image based on CMYK to image based on RGB in the following way using ImageMagick(command Line) :
convert.exe -profile icc:JapanColor2001Coated.icc -colorspace cmyk input.jpg -profile icc:sRGB.icc -colorspace sRGB output.jpg
And I challenge to convert image based on CMYK to image based on RGB in the following way using Magick.net
I show my sorce code below :
private MagickImage convertCMYKToRGB(MagickImage image)
{
image.AddProfile(new ColorProfile(@"C:\sRGB.icc"));
image.ColorSpace = ColorSpace.sRGB;
return image;
}
but converted image using Image Magick(command line) is different from converted image using Magick.net
Maybe, I need to add ColorProfile to image based on CMYK not only to image based on RGB. but, I don't know how to add ColorProfile to input image(image based on CMYK)
How to set profile using Magick.net in the same way using Image Magick ?