Quantcast
Channel: PIL: draw transparent text on top of an image - Stack Overflow
Browsing all 2 articles
Browse latest View live

Answer by Alex Jadczak for PIL: draw transparent text on top of an image

This should work for you.from PIL import Image, ImageDraw, ImageFontimage = Image.open("spongebob.gif").convert("RGBA")txt = Image.new('RGBA', image.size, (255,255,255,0))font =...

View Article



Image may be NSFW.
Clik here to view.

PIL: draw transparent text on top of an image

In a project I have, I am trying to create an outline over some text. The overall idea is to offset a black text slightly transparent from the original white text.For some reasons, I get the black text...

View Article
Browsing all 2 articles
Browse latest View live




Latest Images