0
|
1
|
|
2 """
|
|
3
|
|
4 References:
|
|
5
|
|
6 - http://www.pythonware.com/library/pil/handbook/imagedraw.htm
|
|
7 - http://python-catalin.blogspot.com/2010/06/add-text-on-image-with-pil-module.html
|
|
8 """
|
|
9
|
|
10 # TODO:
|
|
11 # - http://code.activestate.com/recipes/474116-drop-shadows-with-pil/
|
|
12 # - fonts: Arial-black or impact
|
|
13
|
|
14 class MemeGenerator(object):
|
|
15 def __init__(self, font, default_size=25):
|
|
16 pass
|
|
17
|
|
18 def __call__(self, path, header=None, footer=None):
|
|
19 """generate a meme"""
|
|
20
|
|
21 # font
|
|
22 # http://www.pythonware.com/library/pil/handbook/imagefont.htm
|