0

I would like to add some text at the bottom left and some other at the bottom right of image files using GraphicsMagick.

The text should be in black, with a 50% transparent white box.

I've seen some examples but can't get them to work. One of the errors is about fonts gm convert: Unable to read font (/usr/share/fonts/type1/gsfonts/n019003l.pfb) [No such file or directory]. although I'm using very common fonts like DejaVu Sans or Verdana.

The command I'm trying is: gm convert -font verdana -pointsize 30 -fill "white" -draw "text 10,50 'my text'" $image_in $image_out

Also tried -annotate, but it seems it's not accepted.

I've added the imagemagick tag, because it's the closest to graphicsmagick, and I could also use an imagemagick's command, although I'd prefer a graphicsmagick one.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.