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.1.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file django-resized-0.2.1.tar.gz.

File metadata

File hashes

Hashes for django-resized-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d59c988a63bc416c371e5ffd47fd7b704984829ffa82c9499cdb874ef4e87ad4
MD5 2d2b9503ca4f77b2ef99ab3ac179d289
BLAKE2b-256 6c508136b53cac4e766de93de6dc698f2adbd0c6bcbccf2611c1fb9fdd2ee5f5

See more details on using hashes here.

Supported by

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