#4115: contrib.thumbnails
---------------------------+------------------------------------------------
   Reporter:  SmileyChris  |                Owner:  adrian                
     Status:  new          |            Component:  Contrib apps          
    Version:  SVN          |           Resolution:                        
   Keywords:               |                Stage:  Design decision needed
  Has_patch:  1            |           Needs_docs:  0                     
Needs_tests:  0            |   Needs_better_patch:  0                     
---------------------------+------------------------------------------------
Comment (by [EMAIL PROTECTED]):

 Another quick fix to make it possible to thumbnail images which aren't
 RGB.
 
 {{{
 --- base.py.orig 2007-07-28 13:06:58.000000000 +0100
 +++ base.py     2007-07-28 13:10:17.000000000 +0100
 @@ -53,6 +53,8 @@
                  original = Image.open(StringIO(data))
              except IOError, msg:
                  raise ThumbnailInvalidImage(msg)
 +            if original.mode not in ("L", "RGB"):
 +                original = original.convert("RGB")
              self._original_image = original
              thumbnail = self.method()
              self._thumbnail = thumbnail
 
 
 }}}

-- 
Ticket URL: <http://code.djangoproject.net/ticket/4115#comment:26>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to