You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Something that I find myself doing quite often when drawing text to an image is to stroke the text with a high-contrast outline.
I find this helps improve readability over cluttered backgrounds.
Neither pillow.ImageDraw nor pillow.ImageFont currently includes a function while allows ImageDraw to draw stroked text with a specific color outline.
It'd be pretty cool if ImageDraw.text() would include two additional method parameters.
One to indicate the size of the outline in pixels
One to indicate the colour of the outline (similar to the current fill parameter)
Hey,
Something that I find myself doing quite often when drawing text to an image is to stroke the text with a high-contrast outline.
I find this helps improve readability over cluttered backgrounds.
Neither pillow.ImageDraw nor pillow.ImageFont currently includes a function while allows ImageDraw to draw stroked text with a specific color outline.
It'd be pretty cool if ImageDraw.text() would include two additional method parameters.
For example:
draw.text((10, 10), "hello", font=font, outline=BLACK, outline_size=2)
The text was updated successfully, but these errors were encountered: