resize window

This commit is contained in:
2024-02-21 20:10:55 +01:00
parent 31f23af6e7
commit 38f6a0e329
3 changed files with 1 additions and 12 deletions
-1
View File
@@ -63,7 +63,6 @@ def get_and_dither_image(url, instance, attribute):
"""Expects a url, and a Django model cls with an ImageField attribute"""
print(f"Parsing {url} for {instance} with attribute {attribute}")
r = get(url)
print(r.content)
i = Image.open(BytesIO(r.content))
i = i.resize(size=(256, 256)).convert("P").quantize(colors=32)
buffer = BytesIO()