From e9879690825131b729bf11744ebb77a33e2c8776 Mon Sep 17 00:00:00 2001 From: Dominique Makowski Date: Thu, 29 Feb 2024 08:56:39 +0000 Subject: [PATCH] white background for image_mosaic --- pyllusion/image/image_mosaic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyllusion/image/image_mosaic.py b/pyllusion/image/image_mosaic.py index 823fcb6..b6c7329 100644 --- a/pyllusion/image/image_mosaic.py +++ b/pyllusion/image/image_mosaic.py @@ -41,7 +41,7 @@ def image_mosaic(image_list, ncols="auto", nrows="auto"): nrows = int(n / ncols) # Generate image - new = PIL.Image.new("RGB", (image_list[0].width * ncols, image_list[0].height * nrows)) + new = PIL.Image.new("RGB", (image_list[0].width * ncols, image_list[0].height * nrows), color=(255, 255, 255)) i = 0 for row in range(nrows): for col in range(ncols):