From 83859aa406c19cb7036f2bae1067ef6d181654d9 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 28 Jun 2025 18:35:44 +0200 Subject: [PATCH] fxconv: fix libimg conversion for non-alpha images (deprecated) --- fxconv/fxconv.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fxconv/fxconv.py b/fxconv/fxconv.py index 2f8fa9d..c740537 100644 --- a/fxconv/fxconv.py +++ b/fxconv/fxconv.py @@ -926,6 +926,7 @@ def convert_libimg_cg(input, params): # Crop image to key "area" area = Area(params.get("area", {}), img) img = img.crop(area.tuple()) + img = img.convert("RGBA") # Encode the image into 16-bit format and force the alpha to 0x0001 format = CgProfile.find("rgb565a")