From c45eb31e8fd8c079c56c45a72f9358b4b182e572 Mon Sep 17 00:00:00 2001 From: substantialnoninfringinguser Date: Wed, 13 May 2009 06:24:52 +0100 Subject: [svn] Switch from photologue to imagekit. Less bloat. Copied from http://cucc@cucc.survex.com/svn/trunk/expoweb/troggle/, rev. 8338 by cucc @ 5/11/2009 3:08 AM --- imagekit/lib.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 imagekit/lib.py (limited to 'imagekit/lib.py') diff --git a/imagekit/lib.py b/imagekit/lib.py new file mode 100644 index 0000000..65646a4 --- /dev/null +++ b/imagekit/lib.py @@ -0,0 +1,17 @@ +# Required PIL classes may or may not be available from the root namespace +# depending on the installation method used. +try: + import Image + import ImageFile + import ImageFilter + import ImageEnhance + import ImageColor +except ImportError: + try: + from PIL import Image + from PIL import ImageFile + from PIL import ImageFilter + from PIL import ImageEnhance + from PIL import ImageColor + except ImportError: + raise ImportError('ImageKit was unable to import the Python Imaging Library. Please confirm it`s installed and available on your current Python path.') \ No newline at end of file -- cgit v1.2.3