imagemagick: append a label under image with font size

六月ゝ 毕业季﹏ 提交于 2020-01-16 01:06:30

问题


How to append a label under an image with a font size?

convert image.png -label "Test label" -pointsize 100 -gravity center -append image.png

回答1:


Like this:

convert image.png -pointsize 36 label:"Test label" -gravity center -append result.png

When you use xc:, label:, pattern: and gradient: (i.e. all the ones with no dash at the start and a colon at the end), ImageMagick creates a canvas for you to put the data on.



来源:https://stackoverflow.com/questions/33942892/imagemagick-append-a-label-under-image-with-font-size

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!