From 18a49ac541f24cdab8899a82edb1e4a1a986550f Mon Sep 17 00:00:00 2001 From: xiadongliang Date: Thu, 17 Apr 2025 09:57:56 +0800 Subject: [PATCH] ccc --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/main.py b/main.py index 76f16d3..4cd1b80 100644 --- a/main.py +++ b/main.py @@ -100,6 +100,8 @@ def create_character_mosaic(target_text, small_images_dir, output_path, output_s raise ValueError("No usable images found") temp_img = create_text_image(target_text, output_size) + # print('temp_img') + # temp_img.save('temp_img.jpg') cols = math.ceil(output_size[0] / small_img_size[0]) rows = math.ceil(output_size[1] / small_img_size[1]) @@ -111,7 +113,7 @@ def create_character_mosaic(target_text, small_images_dir, output_path, output_s if __name__ == "__main__": - target_text = "WIN" + target_text = "友邦" small_images_dir = "images" output_path = "youbang_poster.jpg"