On Mon, 2010-11-29 at 11:52 +0200, Sithembewena Lloyd Dube wrote:
> class PhotoTest(models.Model):
>      test_name = models.CharField(max_length=50)
>      photo = models.ImageField(upload_to='testphotos', blank=True)
>      thumbnail = models.ImageField(upload_to='thumbnails', blank=True)
> 
> I wish to find out how to override the save() method of this model so
> that,
> when a user selects a photo, I can read that image out of wherever it
> is in
> memory. I would like to thumbnail it with PIL,
> assign it to the thumbnail field of the PhotoTest instance and
> finally, save
> it. 

why not use easy_thumbnail instead? it is an excellent library with no
dependencies and very simple installation.
-- 
regards
Kenneth Gonsalves

-- 
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.

Reply via email to