Llabel Image PythonMagick File How?

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
lindylex
Posts: 23
Joined: 2014-02-27T16:36:22-07:00
Authentication code: 6789

Llabel Image PythonMagick File How?

Post by lindylex » 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!")

Post Reply