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

Uploaded Source

Built Distribution

django_cropduster-4.12.7-py2.py3-none-any.whl (814.6 kB view details)

Uploaded Python 2 Python 3

File details

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

File metadata

  • Download URL: django-cropduster-4.12.7.tar.gz
  • Upload date:
  • Size: 782.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.15.0 CPython/3.7.3

File hashes

Hashes for django-cropduster-4.12.7.tar.gz
Algorithm Hash digest
SHA256 77cf92d66a4c20936550939c637e7cc370f7d0e3b3fbacec6cd9de5d69cff572
MD5 44cacfbfe7817eb8af375668857dbae8
BLAKE2b-256 9e38e27c4980fe765d4549b1b977727c3698693219b4c9c58708979c1d56ae2c

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_cropduster-4.12.7-py2.py3-none-any.whl
  • Upload date:
  • Size: 814.6 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.6.0 requests-toolbelt/0.9.1 tqdm/4.15.0 CPython/3.7.3

File hashes

Hashes for django_cropduster-4.12.7-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 1220d724c2123578f182a24657f783e7a8e7233502af7548b4635338cdc981d8
MD5 555b557d3183d7a2b8d040b3f0a502c7
BLAKE2b-256 b75058e6f3707c43530942722ac53c1dbda1df4ba1c8df838250162e68f17398

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