Skip to main content

A Django app for fetching resized and/or cropped images through a url.

Project description

Django Resizer

Django Resizer allows images to be dynamically resized and/or cropped through a URL. This is very useful when you have a third-party "hot-linking" your images and they won't have access to template tag to dynamically resize images like [easy-thumbnails]( or [sorl-thumbnail]( provides.


Run `pip install django-resizer`

Add `resizer` to your `INSTALLED_APPS` setting:


To your sites `` add:

urlpatterns = patterns('',
url(r'^resizer/(?P<path>.*)/$', 'resizer.views.resize', name='image_resize'),


The resizing and cropping capabilities rely on the easy-thumbnails app.

To resize an image with a height and width of no more than 50px and with the image ratio perserved:


The path after `/resizer` should be the path to the image from your settings `MEDIA_ROOT`. The query string should be `size=[width],[height]`.

To resize an image to have a height and width of extactly 50px:


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-resizer, version 1.0
Filename, size File type Python version Upload date Hashes
Filename, size (8.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page