Create a halo around text in Python using PIL?

Viewed 4534

I'm watermarking some pictures using PIL and I'm having a hard time reading some of the text (black text on dark background). I can't just change text color since I've got a wide array of background colors. Is there any way to add a halo effect around the text?

For example: http://i.imgur.com/WYxSU.jpg The bottom text is what I've got, and the top text is what I'm hoping to get (colors aside). I really just need a thin outline around the text. Any ideas? I can upload some code if you really think it'll make a difference, but it's just a normal PIL ImageDraw.Draw command. Thanks!

1 Answers
Related