如何使用Imagemagick将svg转换为eps? [英] How to convert svg to eps using Imagemagick?

查看:358
本文介绍了如何使用Imagemagick将svg转换为eps?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Imagemagick将svg图像转换为eps.我可以使用Imagemagick转换图像,但是与原始图像尺寸相比,图像尺寸太大,并且与svg相比,内容显示不正确.

I am trying to convert svg image to eps using Imagemagick. I am able to convert the image using Imagemagick, but the image size is too high when compared to the original image size and the content is not displayed correctly compared to the svg.

推荐答案

我也想知道这一点.但是,看来Imagemagick可能不是执行此操作的最佳工具.

I was just wondering this too. However, it appears that Imagemagick might not be the best tool to do this.

Imagemagick是光栅图像处理器",但是SVG和EPS是矢量格式.因此,使用Imagemagick将导致这些图像丢失信息,因为必须将其从矢量格式转换为栅格格式,然后再转换为矢量.这可能解释了为什么图像内容无法正确显示.

Imagemagick is a "raster image processor," but SVG and EPS are vector formats. So using Imagemagick will cause those images to lose information as it has to convert from a vector format, to a raster format, and then back to vector. This probably explains why the contents of your image aren't correctly displayed.

也许可以考虑使用Inkscape使用以下内容进行转换

Maybe consider using Inkscape to do this conversion using the following

# Works as of Version 0.92.4
inkscape ing.svg \
    -E out.eps \
    --export-ignore-filters \
    --export-ps-level=3

其中-E标志是--export-eps导出EPS文件的缩写.

where the -E flag is short for --export-eps to export EPS files.

来源:

  • http://imagemagick.org/Usage/formats/#vector
  • https://stackoverflow.com/a/30539923/6873133

这篇关于如何使用Imagemagick将svg转换为eps?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆