chore: Remove commented-out image resize logic
This commit is contained in:
5
main.py
5
main.py
@@ -31,11 +31,6 @@ def print_picture(filename, p):
|
|||||||
|
|
||||||
img = Image.open(io.BytesIO(response.content))
|
img = Image.open(io.BytesIO(response.content))
|
||||||
|
|
||||||
## Resize first
|
|
||||||
#wpercent = (PRINTER_WIDTH / float(img.size[0]))
|
|
||||||
#hsize = int((float(img.size[1]) * float(wpercent)))
|
|
||||||
#img = img.resize((PRINTER_WIDTH, hsize), Image.LANCZOS)
|
|
||||||
|
|
||||||
# Convert with dithering
|
# Convert with dithering
|
||||||
img = img.convert('1', dither=Image.FLOYDSTEINBERG)
|
img = img.convert('1', dither=Image.FLOYDSTEINBERG)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user