Skip to main content

Deletes old files.

Project description

# django-resized

Resizes image origin to specified size. Compatible with sorl-thumbnail.

## Installation

pip install django-resized

# Configuration (optional)

settings.py

DJANGORESIZED_DEFAULT_SIZE = [800, 600]

Default size is 1920x1080.

## Usage

models.py

from django_resized import ResizedImageField

class MyModel(models.Model):

… image = ResizedImageField(max_width=500, max_height=300, upload_to=’whatever’)

Project details


Download files

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

Source Distribution

django-resized-0.2.3.tar.gz (2.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page