From 4f6f49e31323c76ee942c08bd6586f72385f42fe Mon Sep 17 00:00:00 2001 From: Francois Pelletier Date: Sat, 11 Feb 2023 23:29:09 -0500 Subject: [PATCH] =?UTF-8?q?les=20noms=20de=20fichiers=20sont=20num=C3=A9ro?= =?UTF-8?q?t=C3=A9s=20avec=20du=20padding=20maintenant?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.py b/main.py index f5c17f3..e1d1955 100644 --- a/main.py +++ b/main.py @@ -72,7 +72,7 @@ def convert_pdf(filename, filetype, output_path, resolution=300): img.alpha_channel = 'remove' image_filename = os.path.splitext(os.path.basename(filename))[0] - image_filename = f'{image_filename}-{i}.{filetype}' + image_filename = f'{image_filename}-{i:03}.{filetype}' image_filename = os.path.join(output_path, image_filename) img.save(filename=image_filename)