how would you compress the image when the user uploads
from PIL import Image
class photo(models.Model):
title = models.CharField(max_length=100)
uploader = models.ForeignKey(
settings.AUTH_USER_MODEL, on_delete=models.CASCADE, null=True)
image_url = models.ImageField(upload_to='images', null=True)