#194 closed defect (fixed)
get_image_dimensions does not work on Windows
Reported by: | Steadicat | Owned by: | Adrian Holovaty |
---|---|---|---|
Component: | Core (Other) | Version: | |
Severity: | normal | Keywords: | |
Cc: | Triage Stage: | Unreviewed | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
In source:django/trunk/django/utils/images.py#3, get_image_dimensions does not work on Windows because the image file is not read as a binary file.
Line 11 should read:
fp = open(path, 'rb')
Note:
See TracTickets
for help on using tickets.
(In [310]) Fixed #194 -- thanks, steadicat!