On Mar 18, 6:10 am, robinne <develo...@computer-shoppe.net> wrote: > I can save an uploaded image to a FileField like this (where > "ProductFile" is a model) and "TempFile" is an ImageField: > > uploadedfile = request.FILES['uploadfile'] > ProductFile.objects.create(FileName=UploadDate=datetime.datetime.now(), > TempFile=uploadedfile) > > But, how do I manipulate the image size and then save to this model? I > am working with PIL, but I can't save a PIL Image to a ImageField.
Not a direct answer, but you may want to have a look at image-kit: http://bitbucket.org/jdriscoll/django-imagekit/wiki/Home Does what you need (and more), and it's a breeze to use. -- 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.