Pydds
DDS (including BC7) decompression bindings for Python.
Install / Use
/learn @zao/PyddsREADME
pydds
Replacement library for ImageMagick to decompress from many DDS pixel formats with an optional crop to a target region. While cropping can be done with separate libraries like Pillow doing it as part of decompression can save a lot of work as only the required blocks will be decompressed.
Usage
decode_dds takes a blob of bytes and an optional cropping region, returning a PIL Image for further processing.
from dds import decode_dds
# optional cropping region of (x0, y0, w, h) to be applied while decoding
crop = (0, 0, 20, 20)
with open('Atlas.dds', 'rb') as fh:
img = decode_dds(fh.read(), crop)
Related Skills
node-connect
343.1kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
90.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
343.1kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
343.1kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
