Re: Resizing images when uploading

2008-10-06 Thread Juanjo Conti
Solved thanks to http://groups.google.com/group/django-users/browse_thread/thread/cae5c5a532a73b6d?pli=1 I was using image.resize instead of image.thumbnail. The second one resize in place. def save(self, **kwargs): super(Foto, self).save(**kwargs) path = self.image.path

Re: Resizing images when uploading

2008-10-06 Thread Juanjo Conti
Thanks for your reply, but... Whats resized? It's not in my namespace. 2008/10/4 varikin <[EMAIL PROTECTED]>: > > > > On Oct 3, 4:18 pm, "Juanjo Conti" <[EMAIL PROTECTED]> wrote: >> Hi, I used to use a pre 1.0 svn version of Django. There I had this class: >> >> class Foto(models.Model): >>

Re: Resizing images when uploading

2008-10-04 Thread varikin
On Oct 3, 4:18 pm, "Juanjo Conti" <[EMAIL PROTECTED]> wrote: > Hi, I used to use a pre 1.0 svn version of Django. There I had this class: > > class Foto(models.Model): >     descripcion = models.CharField(max_length=30, blank=True, > verbose_name=u"descripción") >     imagen = models.ImageField(

Resizing images when uploading

2008-10-03 Thread Juanjo Conti
Hi, I used to use a pre 1.0 svn version of Django. There I had this class: class Foto(models.Model): descripcion = models.CharField(max_length=30, blank=True, verbose_name=u"descripción") imagen = models.ImageField(upload_to='imagenes', verbose_name=u"foto") inmueble = models.ForeignK