CMYKに表示される値がパーセント(100/0/0/0)であると仮定します。 ImageMagickのコマンドラインでは、見本
convert xc:"cmyk(100%,0%,0%,7%)" -profile /Users/fred/images/profiles/ISOcoated_v2_300_eci.icc -profile /Users/fred/images/profiles/sRGB.icc -scale 100x100! test.png
または、次のようにあなただけ戻って値を取得することができますを作るために次の操作を行うことができます。
convert xc:"cmyk(100%,0%,0%,7%)" -profile /Users/fred/images/profiles/ISOcoated_v2_300_eci.icc -profile /Users/fred/images/profiles/sRGB.icc -format "%[pixel:u.p{0,0}]\n" info:
のsRGBを(0 %、61%、81%)
値を0〜むしろ%以上255、次いで-depth 8
convert xc:"cmyk(100%,0%,0%,7%)" -profile /Users/fred/images/profiles/ISOcoated_v2_300_eci.icc -profile /Users/fred/images/profiles/sRGB.icc -depth 8 -format "%[pixel:u.p{0,0}]\n" info:
のsRGB(0156207)
を追加また、0と255
convert xc:"cmyk(255,0,0,17.85)" -profile /Users/fred/images/profiles/ISOcoated_v2_300_eci.icc -profile /Users/fred/images/profiles/sRGB.icc -depth 8 -format "%[pixel:u.p{0,0}]\n" info:
間の値で始めることができますsrgb(0,156,207)
これはRMagickで行うことができますが、私はRMagickの専門家ではありません。しかし、sambecker
の他の投稿を参照してください。