mirror of
https://git.planet-casio.com/Lephenixnoir/fxsdk.git
synced 2025-07-04 03:06:39 +02:00
fxconv: fix libimg conversion for non-alpha images (deprecated)
This commit is contained in:
parent
1db7bb209e
commit
83859aa406
1 changed files with 1 additions and 0 deletions
|
@ -926,6 +926,7 @@ def convert_libimg_cg(input, params):
|
||||||
# Crop image to key "area"
|
# Crop image to key "area"
|
||||||
area = Area(params.get("area", {}), img)
|
area = Area(params.get("area", {}), img)
|
||||||
img = img.crop(area.tuple())
|
img = img.crop(area.tuple())
|
||||||
|
img = img.convert("RGBA")
|
||||||
|
|
||||||
# Encode the image into 16-bit format and force the alpha to 0x0001
|
# Encode the image into 16-bit format and force the alpha to 0x0001
|
||||||
format = CgProfile.find("rgb565a")
|
format = CgProfile.find("rgb565a")
|
||||||
|
|
Loading…
Add table
Reference in a new issue