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

Uploaded Source

Built Distribution

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

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for django-cropduster-4.8.42.tar.gz
Algorithm Hash digest
SHA256 cc6aad61340b2e6c9f86ff6c3bfb8a03c87a5e74920b4864c978d8a74434262d
MD5 bd49b9139839c27f82305d5bb4384cb1
BLAKE2b-256 c9f6812bccc742b53b623bd6a36083b7c1b98f657ddbe09e189200e3c5e39234

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_cropduster-4.8.42-py2-none-any.whl
Algorithm Hash digest
SHA256 120c75024c09efd27c2fff01cb7a50a653d010eb6b924569a13790b8f203067b
MD5 1ae5c9fcc0f6f116266f4e59f68bfabb
BLAKE2b-256 190b8d5a1ebb633ae94a5aa54e7e72b1eeac45e929f2ce031229e3fbaf24f37a

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