Crop images so the system UI is not visible. Closes #25
This commit is contained in:
parent
4b9993a8d3
commit
20195f8f6c
@ -110,6 +110,7 @@ with Image.open(output_file) as im:
|
||||
if len(found_needles) == 0:
|
||||
exit(0)
|
||||
os.remove(output_file)
|
||||
im = im.crop((0, 24, 2880, 1588))
|
||||
im = im.resize((im.width // 2, im.height // 2))
|
||||
output_filename = domain.replace(".", "_") + "_" + output_suffix
|
||||
im.save(output_dir + "/" + output_filename, "PNG")
|
||||
|
Loading…
Reference in New Issue
Block a user