From 47ad9c89fe31b4b3ea9d5d5949c644d982c4f70c Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Thu, 7 Nov 2019 16:18:52 -0500 Subject: [PATCH] Fix #143. Explanation: The JPEG format in plMipmap does not have to be an actual JPEG image, it can also hold an RLE bitmap. libHSPlasma currently does not attempt to compress any images held as uncompressed data and marked JPEG, rather, it exports them as RLE maps. Maybe a bit odd, but it works. I guess. --- korman/properties/modifiers/render.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/korman/properties/modifiers/render.py b/korman/properties/modifiers/render.py index 4378ddc..befec0d 100644 --- a/korman/properties/modifiers/render.py +++ b/korman/properties/modifiers/render.py @@ -248,7 +248,8 @@ class PlasmaLightMapGen(idprops.IDPropMixin, PlasmaModifierProperties, PlasmaMod # Mmm... cheating mat_mgr.export_prepared_image(owner=layer, image=lightmap_im, - allowed_formats={"PNG", "DDS"}, + allowed_formats={"PNG", "JPG"}, + extension="hsm", ephemeral=True, indent=2)