From d0b298e4cc7e5c8d1b7ab7bfffcd09b2acda2a69 Mon Sep 17 00:00:00 2001 From: Colin Powell Date: Fri, 1 Dec 2023 00:19:53 +0100 Subject: [PATCH] Fix resizing function for music --- vrobbler/apps/music/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vrobbler/apps/music/models.py b/vrobbler/apps/music/models.py index 64286db..2c0a6cc 100644 --- a/vrobbler/apps/music/models.py +++ b/vrobbler/apps/music/models.py @@ -168,13 +168,13 @@ class Album(TimeStampedModel): cover_image = models.ImageField(upload_to="albums/", **BNULL) cover_image_small = ImageSpecField( source="cover_image", - processors=[ResizeToFit(100)], + processors=[ResizeToFit(100, 100)], format="JPEG", options={"quality": 60}, ) cover_image_medium = ImageSpecField( source="cover_image", - processors=[ResizeToFit(300)], + processors=[ResizeToFit(300, 300)], format="JPEG", options={"quality": 75}, )