mirror of
https://github.com/Hopiu/django-imagekit.git
synced 2026-03-17 05:40:25 +00:00
13 lines
541 B
Python
13 lines
541 B
Python
# Required PIL classes may or may not be available from the root namespace
|
|
# depending on the installation method used.
|
|
try:
|
|
from PIL import Image, ImageColor, ImageEnhance, ImageFile, ImageFilter
|
|
except ImportError:
|
|
try:
|
|
import Image
|
|
import ImageColor
|
|
import ImageEnhance
|
|
import ImageFile
|
|
import ImageFilter
|
|
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.')
|