change resampling method
This commit is contained in:
parent
d6d42a03e6
commit
2f88d81fa5
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ HEIGHT = 10
|
|||
def image_to_string(image_file):
|
||||
img = Image.open(image_file)
|
||||
|
||||
img = img.resize((WIDTH, HEIGHT), Image.Resampling.LANCZOS)
|
||||
img = img.resize((WIDTH, HEIGHT), Image.Resampling.NEAREST)
|
||||
|
||||
img = img.convert("1")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue