From c423d51a8398b8a055a6549393eb9ae0bcc2ddaf Mon Sep 17 00:00:00 2001 From: Victorivus Date: Thu, 11 Apr 2024 07:23:43 +0200 Subject: [PATCH] Fix issue #5783 for character images with transparency (#5827) --- modules/html_generator.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/html_generator.py b/modules/html_generator.py index 2be53fc8..112c8ca0 100644 --- a/modules/html_generator.py +++ b/modules/html_generator.py @@ -139,7 +139,7 @@ def get_image_cache(path): old_p.rename(p) output_file = p - img.convert('RGB').save(output_file, format='PNG') + img.convert('RGBA').save(output_file, format='PNG') image_cache[path] = [mtime, output_file.as_posix()] return image_cache[path][1]