Commit be717cf70b6e2c8f4c00cacf10aac9b180f6ba86
1 parent
164932fc
Exists in
master
and in
2 other branches
Modified news forms, changed rezise value
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
news/forms.py
... | ... | @@ -30,7 +30,7 @@ class NewsForm(forms.ModelForm): |
30 | 30 | image = Image.open(self.instance.image) |
31 | 31 | if not x is None: |
32 | 32 | cropped_image = image.crop((x, y, w+x, h+y)) |
33 | - resized_image = cropped_image.resize((700, 200), Image.ANTIALIAS) | |
33 | + resized_image = cropped_image.resize((1200, 250), Image.ANTIALIAS) | |
34 | 34 | |
35 | 35 | folder_path = join(settings.MEDIA_ROOT, 'news') |
36 | 36 | #check if the folder already exists | ... | ... |