django-jcrop

('Django app providing cropping functionnality with jcrop',)


License
BSD-3-Clause
Install
pip install django-jcrop==0.0.2

Documentation

django-jcrop

Test Status

Code Health

Latest PyPI version

Number of PyPI downloads

This a prototype, the code is working but not ideally (black magic present).

Installation

pip install django-jcrop

Configuration

Put 'easy_thumbnails' and 'sorl.thumbnail' on your INSTALLED_APPS settings.

INSTALLED_APPS = [
    '...',
    'sorl.thumbnail',
    'django_jcrop',
    '...',
]

Models

from django_jcrop.models import JCropImageField

class MyModel(models.Model):
    image = JCropImageField(blank=True)

Admin usage

Go to model edit view and see the crop feature, select an area:

First step

And save:

Second step