Converting PostScript to an image [closed]

牧云@^-^@ 提交于 2019-12-06 09:22:01

1.

Ghostscript can do that:

gs -o output.png -sDEVICE=pngalpha input.eps

You can get the output at a higher resolution than the default 72PPI by adding -r ...:

gs -o output.png -sDEVICE=pngalpha -r300 input.eps

2.

ImageMagick can also do it:

convert input.eps output.png

For higher resolution, add -density ...:

convert -density 300 input.eps output.png

However, ImageMagick will call Ghostscript anyway, employing it as its 'delegate' for handling PostScript input. This can be seen by adding -verbose to the command line. (An ImageMagick installation that lacks an accompanying Ghostscript installation will not work with EPS input files!)

So better go with Ghostscript directly...

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!