#8817: Accessing ImageField's dimensions doesn't close file
----------------------------------+-----------------------------------------
Reporter: tripediac | Owner: nobody
Status: new | Milestone:
Component: File uploads/storage | Version: SVN
Keywords: | Stage: Unreviewed
Has_patch: 0 |
----------------------------------+-----------------------------------------
If you access an ImageField's width or height property, the corresponding
image file doesn't seem to be closed after retrieving its dimensions:
After retrieving a lot of image dimensions (of different images), Django
produces strange errors ("cannot open template file ..." etc.) which seem
to result from too many files being open by the process. Manually calling
the close() method of the ImageFieldFile object (after accessing the width
and height properties) resolves these errors, so it seems it isn't not
called automatically...
--
Ticket URL: <http://code.djangoproject.com/ticket/8817>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---