ImageViewer icon indicating copy to clipboard operation
ImageViewer copied to clipboard

KTX2 BGRA8 sampling is wrong

Open dragonbane0 opened this issue 5 months ago • 4 comments

Describe the bug At least when viewing KTX2 B8G8R8A8 textures, the tool still seems to treat the B channel as R and R as B causing the colors to be inverted.

To Reproduce Steps to reproduce the behavior:

  1. Open B8G8R8A8 KTX2 texture and find the colors are wrong. Unsure if other formats or DDS is affected too

Expected behavior For the BGRA format to be correctly sampled.

Desktop:

  • OS: Windows 11
  • Version 3.8

Additional context Thumbnail generator is also affected and needs the same fix.


Excellent work on the tool, compatibility is very high otherwise

dragonbane0 avatar May 22 '25 02:05 dragonbane0