2

I need to create an image from some background and text, like:

example

I try

convert -size 320x100 xc:transparent \
        -font Arial -pointsize 72 -tile "bg.jpg" \
        -annotate +28+68 'Some text' clear.png

but this does not work.

Kurt Pfeifle
  • 86,724
  • 23
  • 248
  • 345

1 Answers1

0

Use the following command:

magick -gravity center input.jpg ( +clone -threshold 101% -fill white -font berlin-sans-fb-bold -pointsize 124 -draw "text 0,0 Hello" ) -alpha off -compose copyopacity -composite -trim output.png
focog77269
  • 104
  • 5