我正在编写一个用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 ...”开头的文本。从空白卡开始(点不重要):
上述调用是假设更改文本的磅值以使其符合描述框。制作的第一张卡似乎还可以,但它会减少一些文字:
稍后生成另一张卡片,其中文字较少但其磅值较小:
我的图像魔法电话中有什么东西我错了吗?