Re: How to validate image dimensions?

2009-08-22 Thread Léon Dignòn
Thank you! I will youse TiNo's solutions. The resize feature is huge! On Aug 21, 6:10 pm, Alex Gaynor wrote: > On Fri, Aug 21, 2009 at 3:50 AM, TiNo wrote: > > On Fri, Aug 21, 2009 at 10:40, Léon Dignòn wrote: > > >> Hello, > > >>

Re: How to validate image dimensions?

2009-08-21 Thread Alex Gaynor
On Fri, Aug 21, 2009 at 3:50 AM, TiNo wrote: > On Fri, Aug 21, 2009 at 10:40, Léon Dignòn wrote: >> >> Hello, >> >> in my ModelForm I try to allow only images (for avatar) smaller than >> 64*64 pixels. I've done this by overriding clean_avatar(). But how

Re: How to validate image dimensions?

2009-08-21 Thread TiNo
On Fri, Aug 21, 2009 at 10:40, Léon Dignòn wrote: > > Hello, > > in my ModelForm I try to allow only images (for avatar) smaller than > 64*64 pixels. I've done this by overriding clean_avatar(). But how can > I check the dimensions? The instance is an InMemoryUploadedFile

How to validate image dimensions?

2009-08-21 Thread Léon Dignòn
Hello, in my ModelForm I try to allow only images (for avatar) smaller than 64*64 pixels. I've done this by overriding clean_avatar(). But how can I check the dimensions? The instance is an InMemoryUploadedFile which has no width or height. Any help regarding this? class