Thanks a lot for this :) But I really want to do what I said I want to do.
Does anyone has a suggestion? On May 26, 12:23 am, Gonzalo Delgado <gonzalo...@gmail.com> wrote: > El 25/05/10 19:12, Igor Rubinovich escribi : > > > > > > > I want to resize the uploaded file before saving a form. I'd like to > > do something like > > > img = request.FILES['image'] > > img.thumbnail( (200,200), Image.ANTIALIAS) > > img.save(request.FILES['image'], "JPG") > > > photo_form = forms.PhotoEditForm(request.POST, request.FILES, > > instance=photo) > > photo_form.save() > > > i.e. I'd like to put it into the form resized, and preferably without > > a temporary file. > > > What I don't know is what FILES object really is so it's hard to > > figure out what's the right way to achieve this. > > > Any ideas? > > You want to take a look at > easy-thumbnail:http://github.com/SmileyChris/easy-thumbnails > > -- > Gonzalo Delgado <gonzalo...@gmail.com> -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.