comparison memeomatic/meme.py @ 0:bf637ccfcae5 default tip

initial stub
author Jeff Hammel <jhammel@mozilla.com>
date Wed, 04 Jul 2012 12:53:24 -0700
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:bf637ccfcae5
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