From 0870cdefe6bfc098ec57632826cab1863424450c Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Tue, 20 Aug 2024 19:38:46 +0200 Subject: [PATCH] wallpaper: transform extra-images argument to use number of outputs --- bin/wallpaper | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bin/wallpaper b/bin/wallpaper index 13fb865..16466cb 100755 --- a/bin/wallpaper +++ b/bin/wallpaper @@ -370,9 +370,9 @@ if __name__ == "__main__": ) group.add_argument( "--extra-images", - default=3, + default=1, metavar="N", - help="consider N additional images to choose the best combination", + help="consider N additional images per output to choose the best combination", ) group.add_argument( "--count-attribute", @@ -430,7 +430,7 @@ if __name__ == "__main__": outputs, background = get_outputs() candidates = get_covering_rectangles(outputs) images = get_random_images( - options.directory, len(outputs) + options.extra_images + options.directory, len(outputs) * (1 + options.extra_images) ) wallpaper_parts = get_best_parts( candidates,