fxconv: fix libimg conversion for non-alpha images (deprecated)

This commit is contained in:
Lephenixnoir 2025-06-28 18:35:44 +02:00
parent 1db7bb209e
commit 83859aa406
No known key found for this signature in database
GPG key ID: 1BBA026E13FC0495

View file

@ -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")