mirror of
https://github.com/BinomialLLC/basis_universal.git
synced 2026-06-08 00:23:52 +00:00
11 lines
214 B
Python
11 lines
214 B
Python
from basisu_py import Transcoder
|
|
|
|
with open("test.ktx2", "rb") as f:
|
|
data = f.read()
|
|
|
|
t = Transcoder() # AUTO backend
|
|
img = t.decode_rgba(data)
|
|
|
|
print("Decoded shape:", img.shape)
|
|
print("dtype:", img.dtype)
|