Reputation: 45
Trying to convert the Image Magick convert command:
convert -size 50x50 -background white -fill black -gravity center label:Ryan test.gif
to magick++/PythonMagick. Cannot use annotate since I need to have the text auto-sized, which 'label' does. I can do
img = PythonMagick.Image('50x50', 'none')
img.backgroundColor('white')
img.fillColor('black')
img.read('label:Ryan')
img.write('test.gif')
but img.read does not allow me to specify gravity. Is there a way to do this without using subprocess or os?
Upvotes: 0
Views: 73