ImageMagick-文本装饰 - 线高

发布于 2025-02-02 11:27:16 字数 369 浏览 2 评论 0原文

我想在ImageMagick的Convert这样创建的文本下有一条线条:

convert -size 5000x5000 xc:none -quality 100 -font Norwester  -pointsize 720 -fill white -draw " decorate underline text 200,2500 \"T-SHIRT\"" out.png

它的工作原理很好,除了线的高度就像1像素一样,在720px字体下几乎看不见。

有什么方法可以更改我的代码以在我的文本下有更厚的线路?

我当前的IM版本是8:6.9.10.23+dfsg-2.1ubuntu11.4或8:6.9.11.60+dfsg-1.3。

I'd like to have a line under my text created by imagemagick's convert like this:

convert -size 5000x5000 xc:none -quality 100 -font Norwester  -pointsize 720 -fill white -draw " decorate underline text 200,2500 \"T-SHIRT\"" out.png

which works pretty well except that the height of the line is like 1 pixel which is almost invisible under a 720px font.

Is there any way to change my code to have a thicker line under my text?

My current IM version is 8:6.9.10.23+dfsg-2.1ubuntu11.4 or 8:6.9.11.60+dfsg-1.3 .

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

朱染 2025-02-09 11:27:16

在IM 6.9.12-50 Q16上对我来说很好。下划线是文本字体的厚度。您有越野车版本,或者字体是问题。

convert -size 5000x5000 xc:black -quality 100 -font Ubuntu  -pointsize 720 -fill white -draw " decorate underline text 200,2500 \"T-SHIRT\"" out.jpg

Works fine for me on IM 6.9.12-50 Q16. The underline is the thickness of the text font. Either you have a buggy version or the font is the issue.

convert -size 5000x5000 xc:black -quality 100 -font Ubuntu  -pointsize 720 -fill white -draw " decorate underline text 200,2500 \"T-SHIRT\"" out.jpg

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文