ImageMagickでは、イメージ上に-annotateとcompositeを使用してバナーイメージを作成できます。たとえば、画像から始めて、同様のバナーを上に置きたいとします。私はあなたのイメージと希望の高さとポイントに合わせて、希望の幅の半透明の背景色のイメージを作成します。それから私はあなたのイメージの上にそれを合成します。その後、
convert UT-copy-social.png.jpeg \
\(-size 1200x90 xc:"rgba(255,0,0,0.5)" -font Arial -pointsize 64 \
-fill white -gravity east -annotate +50+0 "TEST" \) \
-gravity north -compose over -composite result.jpg
![enter image description here](https://i.stack.imgur.com/7vC1S.jpg)
あなたは半透明のグラデーションのバナーをしたい場合は、以下のように変更します。
convert UT-copy-social.png.jpeg \
\(-size 90x1200 gradient:"rgba(255,0,0,0.5)-rgba(255,0,255,0.5)" \
-rotate 90 -font Arial -pointsize 64 -fill white \
-gravity east -annotate +50+0 "TEST" \) \
-gravity north -compose over -composite result2.jpg
![enter image description here](https://i.stack.imgur.com/qZdIF.jpg)
ます。また-drawかと同様にそれを行うことができますラベル:。 http://www.imagemagick.org/Usage/text/
偉大な答え、ありがとう! –