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!")