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

Uploaded Source

Built Distribution

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

Uploaded Python 2 Python 3

File details

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

File metadata

File hashes

Hashes for django-cropduster-4.8.47.tar.gz
Algorithm Hash digest
SHA256 58aec88b86ceb75bc5eff1adcec3942315ce46c94df090356e90cace9fecdfd3
MD5 dde6f4be435279abbb320ea32c89f2c6
BLAKE2b-256 3f26a2a2d72c127d30af777bc3b24bc6f7016520cba60cb6e87e1abc674569d1

See more details on using hashes here.

File details

Details for the file django_cropduster-4.8.47-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for django_cropduster-4.8.47-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 9d8ec1ff0e1953da7f9ba2c34dce932fb68d7df65a4ff3d6a0c00c514d2d00ed
MD5 631542f863e52b56b2e06343c78f2cac
BLAKE2b-256 caf20e51ad1c302c996141cac74b7d4e951e1f40c74db42743d6aef4d036429d

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