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)
Metadata
Release files for pydds 0.0.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pydds-0.0.8.tar.gz | 671.8 kB | Details |
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| pydds-0.0.8-cp38-abi3-win_arm64.whl | CPython 3.8 | abi3 | Windows ARM64 | Details |
| pydds-0.0.8-cp38-abi3-win_amd64.whl | CPython 3.8 | abi3 | Windows x86-64 | Details |
| pydds-0.0.8-cp38-abi3-musllinux_1_1_x86_64.whl | CPython 3.8 | abi3 | Linux musl 1.1+ x86-64 | Details |
| pydds-0.0.8-cp38-abi3-musllinux_1_1_aarch64.whl | CPython 3.8 | abi3 | Linux musl 1.1+ ARM64 | Details |
| pydds-0.0.8-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ x86-64 | Details |
| pydds-0.0.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | CPython 3.8 | abi3 | Linux glibc 2.17+ ARM64 | Details |
| pydds-0.0.8-cp38-abi3-macosx_10_9_universal2.whl | CPython 3.8 | abi3 | macOS 10.9+ universal2 (ARM64, x86-64) | Details |
Total release size: 8.2 MB
Release files / pydds-0.0.8.tar.gz
| Download URL | pydds-0.0.8.tar.gz |
|---|---|
| Size | 671.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b505ad2fef2cbd48d492a4237ed7ee809a2195cc74d38952601762a66f60a193
|
|
BLAKE2b-256 checksum How to use checksums |
cb44b64bb9ed98c9012e22d463e3d0ca06cd03b24230dc652a500d0c3518f03e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / pydds-0.0.8-cp38-abi3-win_arm64.whl
| Download URL | pydds-0.0.8-cp38-abi3-win_arm64.whl |
|---|---|
| Size | 68.3 kB |
| Tags | CPython 3.8 Windows ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
0af3ed978f181f56fb0704425fe769f9925db3d33891a22209be240b349ceee1
|
|
BLAKE2b-256 checksum How to use checksums |
b0909e02469073116b3e8757c992d7cf83ac14f6e82eaff05a43c2a9c5d03d67
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / pydds-0.0.8-cp38-abi3-win_amd64.whl
| Download URL | pydds-0.0.8-cp38-abi3-win_amd64.whl |
|---|---|
| Size | 78.0 kB |
| Tags | CPython 3.8 Windows x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
0195a4b544743afd3aced8132778fed45c3f5fd097ac74ec2ad58a542dba02ef
|
|
BLAKE2b-256 checksum How to use checksums |
580f0cfbdccc7bd37116311c0e0a27e9273945deaecaa2ce7ac6d17065ba881f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / pydds-0.0.8-cp38-abi3-musllinux_1_1_x86_64.whl
| Download URL | pydds-0.0.8-cp38-abi3-musllinux_1_1_x86_64.whl |
|---|---|
| Size | 2.1 MB |
| Tags | CPython 3.8 Linux musl 1.1+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
cd6dd872a45834aa96fb4074bf9162ef91558cfec118b81e03b2bc8bf62c02d0
|
|
BLAKE2b-256 checksum How to use checksums |
b437e2e9b19921a4964cd1b8747b312338762956b3cd9b18e8bb2a442e45e78d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / pydds-0.0.8-cp38-abi3-musllinux_1_1_aarch64.whl
| Download URL | pydds-0.0.8-cp38-abi3-musllinux_1_1_aarch64.whl |
|---|---|
| Size | 2.0 MB |
| Tags | CPython 3.8 Linux musl 1.1+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
c741f60e82a8246e853fe2f0d09288c1de24cc55262cd005bff3cad8158348c5
|
|
BLAKE2b-256 checksum How to use checksums |
1d05ca332aa9bdb7865de344493391f8a8207af3e4ec1ade22ff76387c664867
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / pydds-0.0.8-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | pydds-0.0.8-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 1.5 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ x86-64 abi3 |
|
SHA-256 checksum How to use checksums |
4c48f9ac193f537065c08a9e09a2ff41eb760ddf62eb58780cf5fd18b10c9117
|
|
BLAKE2b-256 checksum How to use checksums |
1201abd5b7149968366ad218668d41d1ea3bcd9740c41b79f584b9217b4e54bb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / pydds-0.0.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | pydds-0.0.8-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 1.4 MB |
| Tags | CPython 3.8 Linux glibc 2.17+ ARM64 abi3 |
|
SHA-256 checksum How to use checksums |
9bd1447b826426391ba420e663ff6e17a75feff1d1b83e04b95a0ffca2357bc9
|
|
BLAKE2b-256 checksum How to use checksums |
3fadf62169e6c4122c8875a73bffb482728fc6d5e0235078d7f683aebcecdc19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|
Release files / pydds-0.0.8-cp38-abi3-macosx_10_9_universal2.whl
| Download URL | pydds-0.0.8-cp38-abi3-macosx_10_9_universal2.whl |
|---|---|
| Size | 456.5 kB |
| Tags | CPython 3.8 abi3 macOS 10.9+ universal2 (ARM64, x86-64) |
|
SHA-256 checksum How to use checksums |
d85038379d80989af58fdb16ac99fdf283e699ac88dc1197671dd8e862ddeaa5
|
|
BLAKE2b-256 checksum How to use checksums |
82c983b491bbd16985f7d6d5df0d5572603c15709c7174a886761224b1f8cb76
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.11.4
|