gpt4 book ai didi

imagemagick - 使用 imagemagick 将带有前导空格的文本转换为图像

转载 作者:行者123 更新时间:2023-12-01 13:42:12 25 4
gpt4 key购买 nike

我正在尝试使用 imagemagick 的 convert 将文本标签转换为图像util 遵循 official page 上的指南

我正在使用以下命令。
convert -background lightblue -pointsize 72 label:" spaces " label.gif
虽然我的文本作为前导空格,但输出图像前面没有空格。空间正在被修剪。不过,尾随空格没有问题。我已经尝试了 this 给出的解决方案所以问题也是徒劳的。

enter image description here

最佳答案

当我输入这个问题并等待发布时,我通过猜测找到了一种方法;-)

解决方案只是用 blackslash 转义第一个空格。
convert -background lightblue -pointsize 72 label:"\ spaces " spaces.gif
enter image description here

关于imagemagick - 使用 imagemagick 将带有前导空格的文本转换为图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39106383/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com