From befaf553f6c1ec054adf7fcea80e29fa5d67e273 Mon Sep 17 00:00:00 2001 From: luxick Date: Wed, 9 Jan 2019 14:20:52 +0100 Subject: [PATCH] Improve img2tables script. --- img2htmltables.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/img2htmltables.py b/img2htmltables.py index 9e1d386..db4bbbb 100644 --- a/img2htmltables.py +++ b/img2htmltables.py @@ -19,9 +19,9 @@ def img2tables(img_file, width=None, height=None) -> str: html = """ - + +
""" - print(f'Converting "{img_file}"') for row in bar.ChargingBar('Running').iter(range(size_y)): html += '' for col in range(size_x): @@ -76,6 +76,7 @@ if __name__ == '__main__': if args.size: size = args.size + print(f'Starting conversion of "{args.image_path}"') try: html = img2tables(args.image_path, *size) except KeyboardInterrupt: