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...
1 parent 12ffae6 commit a6ed088c62cc788c25e3fa8ef88e314a89db8fce @jacobian jacobian committed Jul 25, 2005
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:

0 comments on commit a6ed088

Please sign in to comment.