summaryrefslogtreecommitdiff
path: root/django/utils/images.py
diff options
context:
space:
mode:
authorJacob Kaplan-Moss <jacob@jacobian.org>2005-07-25 22:16:30 +0000
committerJacob Kaplan-Moss <jacob@jacobian.org>2005-07-25 22:16:30 +0000
commita6ed088c62cc788c25e3fa8ef88e314a89db8fce (patch)
tree13db8a007671dfd2ab66c833dabaf532a2c08302 /django/utils/images.py
parent12ffae6df4da6e8114649c493751c133c36bc313 (diff)
Fixed #194 -- thanks, steadicat!
git-svn-id: http://code.djangoproject.com/svn/django/trunk@310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/images.py')
-rw-r--r--django/utils/images.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/utils/images.py b/django/utils/images.py
index 75424f16a2..122c6ae233 100644
--- a/django/utils/images.py
+++ b/django/utils/images.py
@@ -9,7 +9,7 @@ import ImageFile
def get_image_dimensions(path):
"""Returns the (width, height) of an image at a given path."""
p = ImageFile.Parser()
- fp = open(path)
+ fp = open(path, 'rb')
while 1:
data = fp.read(1024)
if not data: