From 5cdb48e0a240a5109949ff7b449cfb19adaf6669 Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Wed, 21 Feb 2024 17:55:18 +0100 Subject: [PATCH] bigger albums --- playlist/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/playlist/tasks.py b/playlist/tasks.py index ef27c50..78bc3df 100644 --- a/playlist/tasks.py +++ b/playlist/tasks.py @@ -65,7 +65,7 @@ def get_and_dither_image(url, instance, attribute): r = get(url) print(r.content) i = Image.open(BytesIO(r.content)) - i = i.resize(size=(128, 128)).convert("P").quantize(colors=32) + i = i.resize(size=(256, 256)).convert("P").quantize(colors=32) buffer = BytesIO() i.save(fp=buffer, format='PNG') file = InMemoryUploadedFile(ContentFile(buffer.getvalue()), None, instance.name + ".png", "image/png", buffer.tell, "utf-8")