From 848d7d7fa3399b33c9f37640226cbf2e4e6415b4 Mon Sep 17 00:00:00 2001 From: Matthew Tretter Date: Sat, 1 Dec 2012 23:18:49 -0500 Subject: [PATCH] Add TODOs --- imagekit/specs/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/imagekit/specs/__init__.py b/imagekit/specs/__init__.py index 60d4d9a..581453d 100644 --- a/imagekit/specs/__init__.py +++ b/imagekit/specs/__init__.py @@ -110,6 +110,8 @@ class ImageSpec(BaseImageSpec): ]).encode('utf-8')).hexdigest() def generate(self): + # TODO: Move into a generator base class + # TODO: Factor out a generate_image function so you can create a generator and only override the PIL.Image creating part. (The tricky part is how to deal with original_format since generator base class won't have one.) source_file = self.kwargs['source_file'] filename = self.kwargs.get('filename') img = open_image(source_file)