Mike Orr  committed cebd83f

Bugfix in ``get_dimensions_pil``.

  • Participants
  • Parent commits 09cec19
  • Branches trunk

Comments (0)

Files changed (2)

   - Fix HTML overescaping and underescaping in auto_link().  Patch by Marius
+  - Bugfix in ``get_dimensions_pil``.
 * webhelpers.paginate:
   - Change for SQLAlchemy 0.6. (bug #11)
 * webhelpers.pylonslib:

File webhelpers/

     """Get an image's size using the Python Imaging Library (PIL)
     Returns ``(width, height)`` as two integers, or ``default`` if the size
-    could not be ascertained.  Failuer usually means the file does not exist
+    could not be ascertained.  Failure usually means the file does not exist
     or is not in a format recognized by PIL.
     Depends on the Python Imaging Library (
     import Image
-        im = Image(path)
+        im =
     except Exception:
         return default
     return im.size