Mercurial > hg > memeomatic
view 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 |
line wrap: on
line source
""" References: - http://www.pythonware.com/library/pil/handbook/imagedraw.htm - http://python-catalin.blogspot.com/2010/06/add-text-on-image-with-pil-module.html """ # TODO: # - http://code.activestate.com/recipes/474116-drop-shadows-with-pil/ # - fonts: Arial-black or impact class MemeGenerator(object): def __init__(self, font, default_size=25): pass def __call__(self, path, header=None, footer=None): """generate a meme""" # font # http://www.pythonware.com/library/pil/handbook/imagefont.htm