DDS (including BC7) decompression bindings
Project description
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)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
File details
Details for the file pydds-0.0.8.tar.gz
.
File metadata
- Download URL: pydds-0.0.8.tar.gz
- Upload date:
- Size: 671.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b505ad2fef2cbd48d492a4237ed7ee809a2195cc74d38952601762a66f60a193 |
|
MD5 | beec5c87c2432ed309e46845354e458e |
|
BLAKE2b-256 | cb44b64bb9ed98c9012e22d463e3d0ca06cd03b24230dc652a500d0c3518f03e |
File details
Details for the file pydds-0.0.8-cp38-abi3-win_arm64.whl
.
File metadata
- Download URL: pydds-0.0.8-cp38-abi3-win_arm64.whl
- Upload date:
- Size: 68.3 kB
- Tags: CPython 3.8+, Windows ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0af3ed978f181f56fb0704425fe769f9925db3d33891a22209be240b349ceee1 |
|
MD5 | 41886d70afcce731d3870822a690d346 |
|
BLAKE2b-256 | b0909e02469073116b3e8757c992d7cf83ac14f6e82eaff05a43c2a9c5d03d67 |
File details
Details for the file pydds-0.0.8-cp38-abi3-win_amd64.whl
.
File metadata
- Download URL: pydds-0.0.8-cp38-abi3-win_amd64.whl
- Upload date:
- Size: 78.0 kB
- Tags: CPython 3.8+, Windows x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0195a4b544743afd3aced8132778fed45c3f5fd097ac74ec2ad58a542dba02ef |
|
MD5 | 2ea2ec84cab76d561ccedf4296e62f6b |
|
BLAKE2b-256 | 580f0cfbdccc7bd37116311c0e0a27e9273945deaecaa2ce7ac6d17065ba881f |
File details
Details for the file pydds-0.0.8-cp38-abi3-musllinux_1_1_x86_64.whl
.
File metadata
- Download URL: pydds-0.0.8-cp38-abi3-musllinux_1_1_x86_64.whl
- Upload date:
- Size: 2.1 MB
- Tags: CPython 3.8+, musllinux: musl 1.1+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd6dd872a45834aa96fb4074bf9162ef91558cfec118b81e03b2bc8bf62c02d0 |
|
MD5 | fe8b7e10602bb2440884e5edb382b2ba |
|
BLAKE2b-256 | b437e2e9b19921a4964cd1b8747b312338762956b3cd9b18e8bb2a442e45e78d |
File details
Details for the file pydds-0.0.8-cp38-abi3-musllinux_1_1_aarch64.whl
.
File metadata
- Download URL: pydds-0.0.8-cp38-abi3-musllinux_1_1_aarch64.whl
- Upload date:
- Size: 2.0 MB
- Tags: CPython 3.8+, musllinux: musl 1.1+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c741f60e82a8246e853fe2f0d09288c1de24cc55262cd005bff3cad8158348c5 |
|
MD5 | a4e93257e3b536b1e3e4f35210550a33 |
|
BLAKE2b-256 | 1d05ca332aa9bdb7865de344493391f8a8207af3e4ec1ade22ff76387c664867 |
File details
Details for the file pydds-0.0.8-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
.
File metadata
- Download URL: pydds-0.0.8-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
- Upload date:
- Size: 1.5 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c48f9ac193f537065c08a9e09a2ff41eb760ddf62eb58780cf5fd18b10c9117 |
|
MD5 | 3851432a00e5bd1ae0c476bde69329ca |
|
BLAKE2b-256 | 1201abd5b7149968366ad218668d41d1ea3bcd9740c41b79f584b9217b4e54bb |
File details
Details for the file pydds-0.0.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
.
File metadata
- Download URL: pydds-0.0.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
- Upload date:
- Size: 1.4 MB
- Tags: CPython 3.8+, manylinux: glibc 2.17+ ARM64
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bd1447b826426391ba420e663ff6e17a75feff1d1b83e04b95a0ffca2357bc9 |
|
MD5 | b5591df832edcc2224f658d8e4271667 |
|
BLAKE2b-256 | 3fadf62169e6c4122c8875a73bffb482728fc6d5e0235078d7f683aebcecdc19 |
File details
Details for the file pydds-0.0.8-cp38-abi3-macosx_10_9_universal2.whl
.
File metadata
- Download URL: pydds-0.0.8-cp38-abi3-macosx_10_9_universal2.whl
- Upload date:
- Size: 456.5 kB
- Tags: CPython 3.8+, macOS 10.9+ universal2 (ARM64, x86-64)
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.11.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d85038379d80989af58fdb16ac99fdf283e699ac88dc1197671dd8e862ddeaa5 |
|
MD5 | 9dab50cad615c3906d766467c75f7954 |
|
BLAKE2b-256 | 82c983b491bbd16985f7d6d5df0d5572603c15709c7174a886761224b1f8cb76 |