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.
django-cropduster is a mature library currently in production at The Atlantic. However, the documentation at present is far from adequate. Until there is sufficiently detailed documentation we encourage any developers who have an interest in the project but are encountering difficulties using it to create issues on the GitHub project page requesting assistance.
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 you are working from source, ensure that you have django-cropduster checked out to the v4 branch. 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file django-cropduster-4.5.6.tar.gz
.
File metadata
- Download URL: django-cropduster-4.5.6.tar.gz
- Upload date:
- Size: 1.7 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf8b9d12a81fe2464c1f905acb0c446906177707232a1aefbad6286c6db2b924 |
|
MD5 | 5c63ba8d074c4d6263347927e7ee4f4c |
|
BLAKE2b-256 | 1728368c4bf10dd008ae8855146e0d2bfcbabef32fb3fdea41be59363343bf2e |