ImageMagick没有调整文本大小

时间:2015-08-04 03:45:07

标签: bash imagemagick

我正在编写一个用bash生成卡片图像的脚本。这些卡片包含填充页面大部分内容的咒语描述。要将此描述添加到卡中,我使用:

convert -transparent white -fill black -size 161x170 \
        caption:"${newfinisheddescription}" \
        ${tempdir}${newspellfilename}.png \
        +swap -gravity north -geometry +0+77 -composite \
        ${tempdir}${newspellfilename}.png

其中变量只是目录和文件名,而newfinisheddescription是以“cast Time ...”开头的文本。从空白卡开始(点不重要):

enter image description here enter image description here

上述调用是假设更改文本的磅值以使其符合描述框。制作的第一张卡似乎还可以,但它会减少一些文字:

first card

稍后生成另一张卡片,其中文字较少但其磅值较小:

Armor of Agathya

我的图像魔法电话中有什么东西我错了吗?

0 个答案:

没有答案