Re: ImageField woes

2009-08-22 Thread Léon Dignòn
If you need it only for one particular form, you can also override clean_(): --- import Image # PIL class UserProfileForm(ModelForm): class Meta: model = UserProfile # Model UserProfile has an ImageField named avatar. def clean_avatar(self): im

ImageField woes

2009-08-21 Thread Jon
I want to expand on the ImageField functionality of django. Mainly, I want to check the dimensions of the image the user is uploading, and resize / crop where appropriate. I would also like to set compression amount, and perhaps even allow for watermarking. I know there are several libraries out t