chore: sort image file list before processing to ensure deterministic output order

This commit is contained in:
retoor 2024-12-11 15:51:57 +00:00
parent 2fe5da7ef4
commit dbff983329

View File

@ -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: