Re: ImageField width_wield

2009-08-29 Thread Léon Dignòn
No, everything is fine. Once you uploaded a file, you can call image.width and image.height (where image is an instance of Image). If you are using ModelForms, you can set editable=False as a parameter for width and height. image = models.ImageField(upload_to='images', height_field='hei

ImageField width_wield

2009-08-26 Thread TheIvIaxx
Assume i have the following: class Image(models.Model): image = models.ImageField(upload_to="path/to", width_field="width", height_field="height" do i create new Integer fields there for width and height? With this i can do things like: >>> Image.objects.get(pk=1).image.width However this