From dbff983329d84704976cfb796d60cd969dddd690 Mon Sep 17 00:00:00 2001 From: retoor Date: Wed, 11 Dec 2024 15:51:57 +0000 Subject: [PATCH] chore: sort image file list before processing to ensure deterministic output order --- merge_images.py | 1 + 1 file changed, 1 insertion(+) diff --git a/merge_images.py b/merge_images.py index aba6687..d64b48e 100644 --- a/merge_images.py +++ b/merge_images.py @@ -10,6 +10,7 @@ per_image_height = 320 cols = 2 images = list(Path("./export/").glob("*.png")) +images.sort() image_count = len(images) total_image_height = image_count / cols * per_image_height if image_count / cols * per_image_height > total_image_height: