Skip to main content

A very simple Django field to resize images at upload.

Project description

Django SizedImageField

What is it ?

SizedImageField is a Django field which will automatically resize image to fit a defined dimension. Because it inherits from ImageField, all the usual ImageField attributes are available. It uses PIL which is already a requirement to use Django ImageField.


from sizedimagefield.fields import SizedImageField

class Article(models.Model):

    thumbnail = SizedImageField('thumbnail', width=150, height=150, upload_to='articles/')


It has only been tested with Django 1.11 and Python 3.6.


Installing from pypi (using pip).

pip install django-sizedimagefield

Installing from github.

pip install -e git://

Add sizedimagefield in your INSTALLED_APPS:


The application doesn’t have any special requirement.


Please see the LICENSE file.




  • Fixed installation


** New **

  • Initial release

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for django-sizedimagefield, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size django-sizedimagefield-0.1.1.tar.gz (2.5 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page