Django app for Cropper jQuery plugin integration.
Install django-cropper-widget:
$ pip install git+git://github.com/Kudria/django-cropper-widget
Add django-cropper-widget to INSTALLED_APPS in settings.py for your project:
INSTALLED_APPS = (
...
'cropper_widget',
)
In your code:
from cropper_widget.widgets import CropperWidget
class MyForm(forms.Form):
image = forms.ImageField(widget=CropperWidget(cropper_options={'aspectRatio': 1}))