Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

A simple module to make easier crop images in Django admin.

Project Description


A simple module to crop images in an easy way in Django Administration.

Install ``django-simplecrop`` (or download from [PyPI]( "Download from PyPI")):

pip install django-simplecrop

Add ``simplecrop`` to ``INSTALLED_APPS`` in ````:


Include ``simpleCropAutodiscover()`` after ``admin.autodiscover()``:

from simplecrop.utils import simpleCropAutodiscover


Include ``simplecrop.urls`` in ````:

urlpatterns = patterns('',
url(r'^simplecrop/', include('simplecrop.urls')),


Include the ``__crops__`` parameter in your model and specify the field and image sizes:

class MyModel(models.Model):
__crops__ = [
["image", ["110x110", "200x150"]]

title = models.CharField(u"Title", max_length=128)
text = models.TextField("Text")
image = models.ImageField("Image", upload_to="images")

Step 1 - Add image:
![Step 1]( "Step 1")

Step 2 - Crop images:
![Step 2]( "Step 2")

Template tag
Use the template tag `{% thumbnail %}` in your templates:

How to use:

<img name="myimage" src="{% thumbnail ImageObj '100x100' %}" />

\* *This template tag obtains the thumbnail image created when saving in admin. If it does not exist, a new thumbnail with the specified sizes will be created.*


- [Felipe R. Rêgo]( "GitHub - Felipe R. Rêgo")
- [Silvio Lucena Junior]( "GitHub - Silvio Lucena")

Release History

This version
History Node


History Node


History Node


Download Files

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

Filename, Size & Hash SHA256 Hash Help File Type Python Version Upload Date
(95.8 kB) Copy SHA256 Hash SHA256
Source None Apr 10, 2015

Supported By

Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Google Google Cloud Servers DreamHost DreamHost Log Hosting