resize window
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user