Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixed #194 -- thanks, steadicat!

git-svn-id: http://code.djangoproject.com/svn/django/trunk@310 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit a6ed088c62cc788c25e3fa8ef88e314a89db8fce 1 parent 12ffae6
@jacobian jacobian authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/utils/images.py
View
2  django/utils/images.py
@@ -9,7 +9,7 @@
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:
Please sign in to comment.
Something went wrong with that request. Please try again.