Python wrapper for the etcpak library, providing fast block-based texture compression (BC1-7, ETC1/2, ASTC) for image data, particularly useful in game development and rendering pipelines. Current version 0.9.15, updated occasionally.
pip install etcpakNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Compress an RGB image to BC1 (DXT1) format. Input data must be 4x4 block-aligned.
Pad image to multiples of 4, or crop. Use e.g., PIL.ImageOps.pad() or np.pad().
Convert image to 'RGB' mode (PIL) and use array.tobytes(). For RGBA, use compress_bc3 etc. accordingly.
Extract the two channels and pack as interleaved bytes (R,G,R,G...).
Install `pip install etcpak==0.9.15` and use `from etcpak import ...`.
Resize or pad image to multiples of 4 before feeding to etcpak.
Use `arr.tobytes()` or `arr.tostring()` to convert to bytes.
Install using `pip install etcpak`. Ensure no conflicting packages.
No dependency data recorded yet.