[jpg转换为eps会反转颜色

问题描述 投票: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个回答
1
投票

这对我来说在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,我可以看看。

也许它是您的ImageMagick或libjpeg或lcms的版本?

转换image.jpg-格式esp3 image.eps

注意:您具有misspelled格式的eps3(您使用esp3)。因此,默认EPS可能不支持您要执行的操作。另请注意,我在输出前加上了EPS :。尝试一下,尽管可能没关系。

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