首页 > 怎么使用ImageMagick导出Pango Markup Lanague注释的图片?

怎么使用ImageMagick导出Pango Markup Lanague注释的图片?

昨天尝试了一下用ImageMagick导出用Pango Markup注释的文字成图片功能(参见: http://www.imagemagick.org/Usage/text...)。

但是在我的Macbook Pro上执行文档里的例子:

convert -background lightblue -size 150  -define pango:justify=true \
>           pango:"Contributions to IM Examples are welcome via the IM Forum." \
>           pango_justify.gif

一直会出现如下错误

convert: unable to open image `Contributions to IM Examples are welcome via the IM Forum.': No such file or directory @ error/blob.c/OpenBlob/2617.
convert: no decode delegate for this image format `Contributions to IM Examples are welcome via the IM Forum.' @ error/constitute.c/ReadImage/544.
convert: no images defined `pango_justify.gif' @ error/convert.c/ConvertImageCommand/3032.

看上去像是因为我ImageMagick安装的时候没有引入pango support, 遍寻网络都没有找到结果。求问各位大虾。

【热门文章】
【热门文章】