Changeset 8249 for django/trunk/django/core/files/images.py
- Timestamp:
- 08/08/08 16:57:25 (5 months ago)
- Files:
-
- django/trunk/django/core/files/images.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/core/files/images.py
r8244 r8249 5 5 """ 6 6 7 from PIL import ImageFile as PIL8 7 from django.core.files import File 9 8 … … 28 27 def get_image_dimensions(file_or_path): 29 28 """Returns the (width, height) of an image, given an open file or a path.""" 30 p = PIL.Parser() 29 from PIL import ImageFile as PILImageFile 30 p = PILImageFile.Parser() 31 31 if hasattr(file_or_path, 'read'): 32 32 file = file_or_path
