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.save(picturefile, 'JPEG')
edit_user_profile.small_photo.save('pic.jpg', picturefile)
but now this doesn't work.
Can someone please point me in the right direction
Best regards,
Luis
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---