Llabel Image PythonMagick File How?
Posted: 2014-02-27T16:42:39-07:00
I am trying to label an image using PythonMagick and a text file. It is not working. How can I get this to work?
Code: Select all
tmp_img=PythonMagick.Image(str(image_width)+"x"+str(image_height),'rgb(120,20,20)')
tmp_img.font("@/usr/share/fonts/truetype/freefont/FreeMonoBold.ttf")
tmp_img.fontPointsize(15)
tmp_img.fillColor("rgb(255,255,0)")
tmp_img.label("@file.txt")
#tmp_img.annotate("680x680!")