KhronosGroup / KTX-Software

KTX (Khronos Texture) Library and Tools
Other
861 stars 225 forks source link

🐛 `ktx create` bug w/conversion of png => ktx2 #776

Closed Bug-Reaper closed 11 months ago

Bug-Reaper commented 11 months ago

Using some of @donmccurdy 's ktx create CLI recipes to try and convert equirectangular images from png to ktx2.


Given the input image 2048x1024px:

dmosh-tester And command:

ktx create --encode basis-lz --format R8G8B8_SRGB --assign-oetf srgb --assign-primaries bt709 dmosh-tester.png dmosh-tester.ktx2

I end up with malformed ktx2 that looks like this wherein original image has been shrunk, duplicated and half of new image is all black.

Screenshot 2023-10-01 at 9 16 05 PM

If I use the other encoder, then resultant KTX2 also has same half black thing and image cannot be opened in PVRTexToolGui. I'd like to automate this type of conversion to make this process easier, any assistance appreciated.


I'm using an M1 mac, may or may not be relevant but don't have another machine to test with to confirm.

MarkCallow commented 11 months ago

This is the same bug as #727. It has been fixed in both main and 4.2 branches but releases have not yet been made for various reasons.

Bug-Reaper commented 11 months ago

Okay, good to know I can use most recent main 🎀