Converting colors (not images) with ImageMagick

后端 未结 2 1539
北荒
北荒 2021-01-27 10:47

More specifically, I\'d like to accurately convert a CMYK value (probably from the ISO Coated v2 space) to an RGB value (probably from the sRGB space)

2条回答
  •  借酒劲吻你
    2021-01-27 11:44

    In ImageMagick, you can do the following:

    convert xc:"cmyk(0,255,255,0)" -colorspace sRGB -format "%[pixel:u.p{0,0}]\n" info:
    red
    
    convert xc:"cmyk(0,255,255,0)" -profile /Users/fred/images/profiles/USWebCoatedSWOP.icc -profile /Users/fred/images/profiles/sRGB.icc -format "%[pixel:u.p{0,0}]\n" info:
    srgb(93%,11%,14%)
    

提交回复
热议问题