Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

K0lb3/texgenpy

Repository files navigation

texgen_py

A cython wrapper for texgenpack.

Install via python setup.py install

  • Cython is required

usage

from texgenpy import TexImage

# open texture via filepath
tex = TexImage(filepath)

# open texture via bytes
data : bytes
filetype :str # PKM, KTX, DDS, ASTC
tex = TexImage(data, filetype)

# get pillow image
img = tex.image

known errors and missing features

  • EAC and signed RGTC textures don't work.

  • Saving textures doesn't work.

  • PNG won't be supported.

About

texgenpack wrapper

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published