summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: