samuel88-cloud
Results
1
comments of
samuel88-cloud
Hi bgrace i followed the above, but it doesnt work, the default unsized image is being stored. models.py class Product(models.Model): name=models.CharField(max_length=100) image=models.ImageField(default='default.jpg',upload_to='productimages') price=models.FloatField() def generate_thumbnail(self,src): image = Image.open(src) # in...