0

I am challenging again with ImageMagick.

I am trying with following command put text on image (in center location) and later move it -left and right. Documentation says, that gravity can be using in concert with geometry - but it seems not working as I expected. I am trying this command:

convert render/pre.button.png -gravity south  -geometry +30+30   -annotate 0 'Faerie Dragon' render/button.png

Unfortunately geometry does not work with gravity, for me :(

chepner
  • 497,756
  • 71
  • 530
  • 681
bluszcz
  • 4,054
  • 4
  • 33
  • 52

1 Answers1

1

Try these two commands, they should give you two different results:

convert \
   in.png \
  -gravity south \
  -annotate 0x0+0+0 'Faerie Dragon' \
   out-1.png

convert \
   in.png \
  -gravity south \
  -annotate 0x0+30+30 'Faerie Dragon' \
   out-2.png

The output of the second one is probably similar to the one you intended.

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