jonasundderwolf / django-image-cropping

Django helper application to easily and non-destructively crop arbitrarily large images in admin and frontend.
Other
553 stars 131 forks source link

Adds multiple size image ratio field #7

Closed pazur closed 12 years ago

pazur commented 12 years ago

I created model field which allows to use different sizes, i.e.:

class MyModel(models.Model):
    ...
    image_ratio = ImageMultipleRatioField('image_field', ('120x100', '200x100'))

In form this field has extra select, to choose ratio of selection.

jonasvp commented 12 years ago

Sorry for not giving feedback earlier. For some reason I wasn't notified of this pull request.

Thanks for your work! We decided to use multiple ImageRatio fields for this use case, as described here: https://github.com/jonasundderwolf/django-image-cropping/#extras

That way you can add descriptions and help_texts for each format so it's clear where each cropping is used. If there's a use case that doesn't work with this solution, let me know!