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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

django_cropduster-4.15.0-py3-none-any.whl (154.6 kB view details)

Uploaded Python 3

File details

Details for the file django_cropduster-4.15.0.tar.gz.

File metadata

  • Download URL: django_cropduster-4.15.0.tar.gz
  • Upload date:
  • Size: 146.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.5

File hashes

Hashes for django_cropduster-4.15.0.tar.gz
Algorithm Hash digest
SHA256 e4d85071ce0f50bbab6a618416b89b9fd80677773c2f46624c430a1a490b1a72
MD5 29a6a0d5d5c2706d9b47678e00d2e94c
BLAKE2b-256 aac1566251aeb23bdf53fdbc551bb725e90a78b4d7527c428ea35985ce795336

See more details on using hashes here.

File details

Details for the file django_cropduster-4.15.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_cropduster-4.15.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4f8fc951abe6de1a3ae9a377c27d1b7ad14056c308e9856820a25a1570181eb7
MD5 07205edda02246170ded36aeb68b9312
BLAKE2b-256 82731c6234a947155640cecfcff1d3e732c0428ec39f0a8cdac6e456e3d57479

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