class ImageField(upload_to=None, height_field=None, width_field=None, max_length=100, **options)
[source]
Inherits all attributes and methods from FileField
, but also validates that the uploaded object is a valid image.
In addition to the special attributes that are available for FileField
, an ImageField
also has height
and width
attributes.
To facilitate querying on those attributes, ImageField
has two extra optional arguments:
Please login to continue.