Commit be717cf70b6e2c8f4c00cacf10aac9b180f6ba86

Authored by Gustavo
1 parent 164932fc

Modified news forms, changed rezise value

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
@@ -30,7 +30,7 @@ class NewsForm(forms.ModelForm): @@ -30,7 +30,7 @@ class NewsForm(forms.ModelForm):
30 image = Image.open(self.instance.image) 30 image = Image.open(self.instance.image)
31 if not x is None: 31 if not x is None:
32 cropped_image = image.crop((x, y, w+x, h+y)) 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 folder_path = join(settings.MEDIA_ROOT, 'news') 35 folder_path = join(settings.MEDIA_ROOT, 'news')
36 #check if the folder already exists 36 #check if the folder already exists