django-imagekit icon indicating copy to clipboard operation
django-imagekit copied to clipboard

How can I define imagekit spec from CreateView and UpdateView in Django 2.0

Open rousseauu opened this issue 7 years ago • 0 comments

How can provide width and height dynamically from form field:

class PostForm(forms.ModelForm):
    image = ProcessedImageField(spec_id='posts:create:post_image',
                                processors=[ResizeToFill(width=600, height=400)],
                                format='JPEG',
                                options={'quality': 80})
    width_field = forms.IntegerField()
    height_field = forms.IntegerField()

rousseauu avatar May 24 '18 23:05 rousseauu