This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(6)
使用 ImageMagick 的转换时,最好使用 eps2 格式。这使得生成的 eps 文件小得多,因为它使用 JPEG 压缩算法 (DCT)。
因此,要将
a.jpg
转换为a.eps
,请执行以下操作:这当然可以在 shell 脚本中使用,将多个 JPG 转换为 EPS。
When using the ImageMagick's convert, it is a good practice to use the eps2 format. This make the resulting eps file much smaller because it uses the JPEG compression algorithm (DCT).
So, to convert
a.jpg
toa.eps
do:This of course, can be used in a shell script, to convert multiple JPG to EPS.
您可以使用许多工具。我建议使用 ImageMagick 中的
convert
命令。要使示例 2 运行,您需要删除
for
循环内的echo
。在删除它之前,请确保它输出的命令正确。You can use many tools. I recommend using
convert
command from ImageMagick.To make example 2 run you need to remove the
echo
inside thefor
-loop. Make sure the commands it outputs are correct before removing it.根据用户1958943的说法,我也使用了转换工具。然而,由于 eps3 格式提供了更好的压缩,质量与 eps2 相似,我建议使用
顺便说一句,这个工具也适用于 png 文件(以及其他文件)...
有人知道 eps3 使用哪种压缩吗?
According to user1958943, I used the convert tool as well. However, as the eps3 format gives an even better compression with similar quality as eps2, I suggest to use
By the way, this tool also works for png files (and also others) ...
Does anybody know which compression eps3 is using?
另一种选择是将 jpegtopnm 和 pnmtops 来自 netpbm 工具包。
然而,这将产生 PS,而不是 EPS。
Another option is to combine jpegtopnm and pnmtops from the netpbm toolkit.
This will however produce PS, not EPS.
ImageMagick 的 convert 可以为您做到这一点。
ImageMagick's convert can do that for you.
我经常这样做,有时在 Windows 上这样做。因此,我编写了一个小型在线转换器,它使用convert:
JPG to EPS Converter。
希望这也可以帮助其他人。
I do this often and sometimes on Windows. Hence, I wrote a small online converter which uses convert:
JPG to EPS Converter.
Hope this can also help others.