Hi, I need to convert the images that I upload to cmyk, right now the images are in rgb?
This lib can help me to make this happen?
Convert rgb to cmyk
Re: Convert rgb to cmyk
You can use the following code to accomplish this:
If you need more help please check the documentation here: https://magick.codeplex.com/documentation or feel free to start a topic here: https://magick.codeplex.com/discussions.
Code: Select all
using (MagickImage image = new MagickImage("Input.png"))
{
image.ColorAlpha(new MagickColor("#FFF")); // You only need this when your image contains transparency.
image.AddProfile(ColorProfile.SRGB);
image.AddProfile(ColorProfile.USWebCoatedSWOP);
image.Write("Output.jpg");
}