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

Uploaded Source

Built Distribution

django_cropduster-4.13.7-py2.py3-none-any.whl (173.3 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-cropduster-4.13.7.tar.gz
  • Upload date:
  • Size: 143.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for django-cropduster-4.13.7.tar.gz
Algorithm Hash digest
SHA256 71c297aad6a576613ff7f47a42ae89a1d786eb1ada514ccfcb5cbffba5b25c83
MD5 6d53e2da0aad590d20bb071dbcef5e0a
BLAKE2b-256 97107c6ad36ef1fe553e37cdf958e50a1332240dcf875f60fffeca1c78b0edad

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_cropduster-4.13.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 173.3 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/47.1.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.7.9

File hashes

Hashes for django_cropduster-4.13.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 7b75759646fdfe3e577e9821cbb1c430d8e2b8253288f18566c090e983c481b6
MD5 5a7d8c6acc461a5f79651f666b12cc54
BLAKE2b-256 8e79b43bdef11f2ea9ff04c1279506792060243257868e613aa214cd1cbc307c

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