Skip to main content

Django image uploader and cropping tool

Project description

django-cropduster is a project that makes a form field available that uses the Jcrop jQuery plugin. It is a drop-in replacement for django’s ImageField and allows users to generate multiple crops from images, using predefined sizes and aspect ratios. django-cropduster was created by developers at The Atlantic. It is compatible with python 2.7 and 3.4, and Django versions 1.4 - 1.8.

Installation

The recommended way to install django-cropduster is from PyPI:

pip install django-cropduster

Alternatively, one can install a development copy of django-cropduster from source:

pip install -e git+git://github.com/theatlantic/django-cropduster.git#egg=django-cropduster

If the source is already checked out, use setuptools:

python setup.py develop

Configuration

To enable django-cropduster, "cropduster" must be added to INSTALLED_APPS in settings.py and you must include cropduster.urls in your django urlpatterns.

# settings.py

INSTALLED_APPS = (
    # ...
    'cropduster',
)

# urls.py

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

License

The django code is licensed under the Simplified BSD License. View the LICENSE file under the root directory for complete license and copyright information.

The Jcrop jQuery library included is used under the MIT License.

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-cropduster-4.8.34.tar.gz (1.9 MB view details)

Uploaded Source

Built Distribution

django_cropduster-4.8.34-py2-none-any.whl (2.0 MB view details)

Uploaded Python 2

File details

Details for the file django-cropduster-4.8.34.tar.gz.

File metadata

File hashes

Hashes for django-cropduster-4.8.34.tar.gz
Algorithm Hash digest
SHA256 7c2273aa4666c71fce87d8f198a3e99866b685875be6644709c221edda2a0d27
MD5 8454c2df2fa6224b472314cf03315d7d
BLAKE2b-256 9acbdab07342efc1efe048c9d916c951e322531e4b69fa52877785a07a02c9d5

See more details on using hashes here.

File details

Details for the file django_cropduster-4.8.34-py2-none-any.whl.

File metadata

File hashes

Hashes for django_cropduster-4.8.34-py2-none-any.whl
Algorithm Hash digest
SHA256 f9aef2a34d26d99a08cd8a9f982ca5b4fbe4555475fabb7e8c4151bfeebe1ee9
MD5 7d837d5dc84fd5c652350ed0cfd86cd4
BLAKE2b-256 4b4d5df97d1588dc48fae5dd54573a363412b8e8066158fef4f3cd4e8d26080e

See more details on using hashes here.

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