#11158: get_image_dimensions very slow after 1 call
-------------------------------------+--------------------------------------
          Reporter:  kua             |         Owner:  nobody                   
              
            Status:  new             |     Milestone:  1.2                      
              
         Component:  Core framework  |       Version:  SVN                      
              
        Resolution:                  |      Keywords:  get_image_dimensions, 
field, save, slow
             Stage:  Accepted        |     Has_patch:  1                        
              
        Needs_docs:  0               |   Needs_tests:  0                        
              
Needs_better_patch:  1               |  
-------------------------------------+--------------------------------------
Changes (by rvanlaar):

  * milestone:  => 1.2

Comment:

 Can wait for 1.2.

 Use the ImageFile.width and ImageFile.height.

 {{{
 from django.core.files.images import ImageFile
 im = ImageFile(open('/tmp/some_multi_megabyte_file.jpg')
 im.width
 im.height
 }}}

-- 
Ticket URL: <http://code.djangoproject.com/ticket/11158#comment:10>
Django <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 django-updates@googlegroups.com
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to