I am trying to do a simple conversion from a transparent PNG file to EPS with transparency and currently my command looks like this:
convert "image1.png" "image1.eps"
It looks like all I am getting is a black image. Any ideas?
Thanks!
I am trying to do a simple conversion from a transparent PNG file to EPS with transparency and currently my command looks like this:
convert "image1.png" "image1.eps"
It looks like all I am getting is a black image. Any ideas?
Thanks!
将 PNG 转换为 EPS 不仅仅是简单的格式转换。它从光栅图像变为矢量图像,因此必须对光栅图像进行“跟踪”。用于执行此操作的流行命令行工具是potrace。安装(potrace
及其组件工具mkbitmap
)后,您可以这样做:
convert image1.png image1.bmp
mkbitmap image1.bmp -o image1.pgm
potrace image1.pgm -e -o image1.eps
调用mkbitmap
将彩色图像转换为更适合跟踪的灰度图。这将产生一个在白色背景上带有黑线的 eps。如果您需要全彩色跟踪,inkskape是一个用于执行此操作的 GUI 工具,inkscape 用户自制了一个命令行工具来执行此操作,可以在这里找到