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

Uploaded Source

Built Distribution

django_cropduster-4.14.4-py3-none-any.whl (172.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: django-cropduster-4.14.4.tar.gz
  • Upload date:
  • Size: 144.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.14.4.tar.gz
Algorithm Hash digest
SHA256 35638572239b9688d0f27c7752a8b3e4ebcd013a6a82a4e092ac5545a242461d
MD5 de3a7c8c5ce658dd982f1f4731929112
BLAKE2b-256 3e79a0f8cd6f82fc19e5da4e4d65b80e74d2342d3fe380e018855faae8d5b764

See more details on using hashes here.

File details

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

File metadata

  • Download URL: django_cropduster-4.14.4-py3-none-any.whl
  • Upload date:
  • Size: 172.5 kB
  • Tags: 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.14.4-py3-none-any.whl
Algorithm Hash digest
SHA256 891ab78d5feb817c57a0ecde8d3888e780a7b931d91e8a65d04e73a3b116a77b
MD5 8d872488ae2ebc957318304e08532a7b
BLAKE2b-256 1f75c91f8fd0f7b02ce8f3e06b54d7b903bda92af8498db7b413085adf135cdd

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