diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/memeomatic/meme.py	Wed Jul 04 12:53:24 2012 -0700
@@ -0,0 +1,22 @@
+
+"""
+
+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