我必须为打印生成TIFF。通常使用特殊的黑色调来获得更好的视觉体验。在我的案例中,这是cmyk(40%,40%,40%,100%)。
无论我将两个图像合并在一起(合成)时我做了什么,“转换”工具将我的“cmyk(40%,40%,40%,100%)”转换为“cmyk(0,0,0,255)”。 / p>
示例:
我打电话:
/usr/bin/convert -colorspace cmyk \
-compress lzw \
-depth '8' \
-endian msb \
-density 360x360 \
-units PixelsPerInch \
-profile ISOcoated_v2_300_eci.icc \
background.tif textlayer.tif -composite print.tif
当我现在检查生成的“print.tif”时,最常用的颜色是:
% identify -verbose print.tif | grep -A 2 Histogram
Histogram:
1674545: ( 0, 0, 0,255) #000000FF cmyk(0,0,0,255)
164: ( 0, 0, 1,254) #000001FE cmyk(0,0,1,254)
但那不是我背景的黑色:
%identify -verbose background.tif | grep -A 2 Histogram
Histogram:
1817895: (102,102,102,255) #666666FF cmyk(102,102,102,255)
Rendering intent: Perceptual
怎么了?我该怎么办?
答案 0 :(得分:0)
你的命令对我有用。
我使用您的规格创建了两个400x300像素的源文件:
这两个文件都是LZW压缩的TIFF。我没有ISOcoated_v2_300_eci.icc
所以我使用了convert
命令字符串的标准CYMK配置文件:
$ convert -colorspace cmyk \
-compress lzw \
-depth '8' \
-endian msb \
-density 360x360 \
-units PixelsPerInch \
-profile ~/Library/ColorSync/Profiles/USWebCoatedSWOP.icc \
rich-black-bg.tif yellow-type-tx.tif \
-composite composite-lzw-profile.tif
以下是identify
对所有3个文件的输出,使用egrep
显示文件名和最常见的颜色(图像中至少有100个像素的颜色)。请注意,identify
输出中的直方图颜色按颜色十六进制数排序,而不是按图像中的普遍性排序。在底部,您可以看到大多数合成图像像素具有正确的浓黑色:
$ identify -verbose rich-black-bg.tif yellow-type-tx.tif \
composite-lzw-profile.tif | egrep 'Image\:.*\.tif$|Histogram|^\s+\d{3,}\:'
Image: rich-black-bg.tif
Histogram:
120000: (102,102,102,255) #666666FF cmyk(102,102,102,255)
Image: yellow-type-tx.tif
Histogram:
114603: ( 0, 0, 0, 0, 0) #0000000000 cmyka(0,0,0,0,0)
4584: ( 0, 0,255, 0,255) #0000FF00 cmyka(0,0,255,0,1)
150: ( 0, 0,255, 0, 34) #0000FF0022 cmyka(0,0,255,0,0.133333)
107: ( 0, 0,255, 0,153) #0000FF0099 cmyka(0,0,255,0,0.6)
100: ( 0, 0,255, 0,221) #0000FF00DD cmyka(0,0,255,0,0.866667)
Image: composite-lzw-profile.tif
Histogram:
4584: ( 0, 0,255, 0) #0000FF00 cmyk(0,0,255,0)
100: ( 14, 14,235, 34) #0E0EEB22 cmyk(14,14,235,34)
107: ( 41, 41,194,102) #2929C266 cmyk(41,41,194,102)
150: ( 88, 88,122,221) #58587ADD cmyk(88,88,122,221)
114603: (102,102,102,255) #666666FF cmyk(102,102,102,255)
我在Mac OS X v10.10.1上使用ImageMagick 6.8.9-7。