Gem ImageMagick 操作 eps 图片问题

suyuhang · May 21, 2015 · Last by suyuhang replied at May 22, 2015 · 2343 hits

我想在 eps 图片上 写中文字

convert -font /Users/suyuhang/Downloads/Fonts/simsun.ttc -fill purple -pointsize 40 -draw 'text 70,100 "我才18"'
 /Users/suyuhang/Downloads/zxr.eps /Users/suyuhang/Downloads/zxr1.eps


convert: no decode delegate for this image format `EPT' @ error/constitute.c/ReadImage/501.


convert: no images defined `/Users/suyuhang/Downloads/zxr1.eps' @ error/convert.c/ConvertImageCommand/3212.

我需要安装什么么?

eps 是 embed postscript, 所以要安装 ghostscript 支持

brew info imagemagick 看看 ghostcript 是否勾上了,没有的话

brew reinstall imagemagick --with-ghostscript

#1 楼 @luikore 我在 google 上查 也是说 安装 gs 但是 brew install gs 怎么都安装不上 我先试试您这个

#1 楼 @luikore 谢谢啦 就您一人 回复我 哎 是我问的问题 太 low 了么

#3 楼 @suyuhang 是太偏,一般人都不懂的。

#4 楼 @chenge 哦哦 谢谢啦 您有 对 eps 操作的 代码吗?

You need to Sign in before reply, if you don't have an account, please Sign up first.