Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
rousseauu opened this issue May 24, 2018 · 0 comments

Comments

@rousseauu
Copy link

rousseauu commented May 24, 2018

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()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant