Fix issue #5783 for character images with transparency (#5827)

This commit is contained in:
Victorivus 2024-04-11 07:23:43 +02:00 committed by GitHub
parent b94cd6754e
commit c423d51a83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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