Re: Django Image thumbnail and save

2008-09-01 Thread Luis Rodrigues
Thanks, allready got it to work. 2008/8/31 julianb <[EMAIL PROTECTED]>: > > On Aug 31, 6:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> > wrote: >> Can someone please point me in the right direction > > I got problems after the refactoring, too: > > http://groups.google.com/group/django-users/br

Re: Django Image thumbnail and save

2008-08-31 Thread julianb
On Aug 31, 6:45 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Can someone please point me in the right direction I got problems after the refactoring, too: http://groups.google.com/group/django-users/browse_thread/thread/230a8601a4839bd9/b707f7fe40e03537#b707f7fe40e03537 --~--~-~-

Django Image thumbnail and save

2008-08-31 Thread [EMAIL PROTECTED]
Hello, before the File storage refactoring I had this code to do the thumbnail of an image and save it. from cStringIO import StringIO from PIL import Image im = Image.open(StringIO(self.cleaned_data['small_photo'].read())) picturefile = StringIO() im.thumbnail((250, 80), Image.ANTIALIAS) im.sav