问题描述 投票:0回答:1
我正在尝试使用convert image.jpg -format esp3 image.eps将一些CMYK图像从jpg转换为eps。生成的文件似乎反转或破坏了颜色信息。

原始.jpg的示例:

enter image description here

转换后的.eps的示例:

enter image description here

我已经尝试了命令的一些变体。例如,convert -colorspace RGB image.jpg -format esp3 image.eps的输出看起来要好得多(因为图像可识别)。但是可以预见,颜色不正确。

我该如何纠正结果?我愿意接受其他(Linux终端)程序或脚本语言来完成工作。

可能有用的信息:

$ convert --version Version: ImageMagick 6.9.7-4 Q16 x86_64 20170114 http://www.imagemagick.org Copyright: © 1999-2017 ImageMagick Studio LLC License: http://www.imagemagick.org/script/license.php Features: Cipher DPC Modules OpenMP Delegates (built-in): bzlib djvu fftw fontconfig freetype jbig jng jpeg lcms lqr ltdl lzma openexr pangocairo png tiff wmf x xml zlib

jpeg imagemagick-convert eps cmyk
1个回答
0
投票
这可能是因为JPG是CMYK,EPS可能期望使用RGB。因此,在保存为EPS之前,使用配置文件(最佳)或-colorspace sRGB将jpg从CMYK转换为sRGB。

这对我来说在IM 6.9.10.84 Q16 Mac OSX上正常工作。

sRGB lena.jpg:

enter image description here

将其转换为CMYK:

convert lena.jpg -colorspace CMYK x1.jpg

CMYK莉娜(x1.jpg):

enter image description here

转换为EPS:

convert x1.jpg EPS3:x1.eps

使用Mac Preview的x1.eps的显示看起来不错-没有颜色反转。

同样,使用配置文件更好:

convert lena.jpg -profile /Users/fred/images/profiles/sRGB.icc -profile /Users/fred/images/profiles/USWebCoatedSWOP.icc x2.jpg

具有配置文件的CMYK lena(x2.jpg)

enter image description here

转换为EPS:

convert x2.jpg EPS3:x2.eps

结果看起来像是从其创建的jpg -没有颜色反转。

发布您输入的jpg,我可以看看。

© www.soinside.com 2019 - 2024. All rights reserved.