from PIL import Image


def resize_image(avatar, size=(380, 500)):
    image = Image.open(avatar.path)
    image.resize(size, Image.ANTIALIAS).save(avatar.path, 'JPEG', quality=80)

ad60987d835e2e19bcb76433c985c5edeb5e120e
<mask token>

<mask token>


def resize_image(avatar, size=(380, 500)):
    image = Image.open(avatar.path)
    image.resize(size, Image.ANTIALIAS).save(avatar.path, 'JPEG', quality=80)

from PIL import Image


def resize_image(avatar, size=(380, 500)):
    image = Image.open(avatar.path)
    image.resize(size, Image.ANTIALIAS).save(avatar.path, 'JPEG', quality=80)
