Converting RGB to CMYK , Using ICC Profile

前端 未结 3 1496
醉梦人生
醉梦人生 2021-02-05 23:59

I\'m about to converting RGB color to CMYK for printing purpose. scale of this conversion is Adobe Photoshop ( Image -> Mode -> CMYK color )

I tried

3条回答
  •  甜味超标
    2021-02-06 00:56

    May be this (untested) snippet helps a bit - it uses the the .NET api for ImageMagick.

    MagickReadSettings settings = new MagickReadSettings();
    settings.ColorSpace = ColorSpace.CMYK;
    using (MagickImage image = new MagickImage())
    {
      image.AddProfile(ColorProfile.CMYK);
      image.Read("image_rgb.tiff", settings);
      image.Write("image_cmyk.tiff");
    }
    

    If you can use the commandline this will also do the job:

    convert image_rgb.tiff -profile "RGB.icc" -profile "CMYK.icc" image_cmyk.tiff
    

提交回复
热议问题