I am wondering how to best implement a croppable ImageField in Django.
Basically i'd like to upload images and crop them. For example using imagAreaSelect
The first approach that came to my mind was to create an ImageField and some meta fields on my model to store the crop ratio, width and height of my selection. But i wonder if the there are cleaner ways to solve this and to further encapsulate the cropping behaviour.
So ultimately i'd like to wrap the desired behaviour in a widget. Though the problem i see is that widgets are usually mapped to single database field.
So i wonder if this is doable at all and how to best persist my image data?
We ended up creating a reusable app for cropping images: django-image-cropping