code cleanups
This commit is contained in:
		| @@ -185,8 +185,10 @@ def write(image, xy, box_size, text, font=None, **kwargs): | |||||||
|   draw  = ImageDraw.Draw(image) |   draw  = ImageDraw.Draw(image) | ||||||
|   space = Image.new('RGBA', (box_width, box_height)) |   space = Image.new('RGBA', (box_width, box_height)) | ||||||
|   ImageDraw.Draw(space).text((x, y), text, fill=colour, font=font) |   ImageDraw.Draw(space).text((x, y), text, fill=colour, font=font) | ||||||
|  |  | ||||||
|   # Uncomment following two lines, comment out above two lines to show |   # Uncomment following two lines, comment out above two lines to show | ||||||
|   # red text-box with white text (debugging purposes) |   # red text-box with white text (debugging purposes) | ||||||
|  |  | ||||||
|   #space = Image.new('RGBA', (box_width, box_height), color= 'red') |   #space = Image.new('RGBA', (box_width, box_height), color= 'red') | ||||||
|   #ImageDraw.Draw(space).text((x, y), text, fill='white', font=font) |   #ImageDraw.Draw(space).text((x, y), text, fill='white', font=font) | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user