From a6ed088c62cc788c25e3fa8ef88e314a89db8fce Mon Sep 17 00:00:00 2001 From: Jacob Kaplan-Moss Date: Mon, 25 Jul 2005 22:16:30 +0000 Subject: [PATCH] Fixed #194 -- thanks, steadicat! git-svn-id: http://code.djangoproject.com/svn/django/trunk@310 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/utils/images.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: