add text_fill option
This commit is contained in:
@@ -44,7 +44,9 @@ def generate(config):
|
||||
elif filter == "uppercase":
|
||||
text = text.upper()
|
||||
|
||||
draw.text(config.get('text_offset', [0, 0]), text, font=font, fill=(255, 255, 255, 255))
|
||||
fill = config.get('text_fill')
|
||||
fill = tuple(fill) if fill else None
|
||||
draw.text(config.get('text_offset', [0, 0]), text, font=font, fill=fill)
|
||||
|
||||
img.save(config['output'], save_all=True)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user