Skip to main content

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

pydds-0.0.6.tar.gz (671.7 kB view details)

Uploaded Source

Built Distributions

pydds-0.0.6-cp38-abi3-win_arm64.whl (67.8 kB view details)

Uploaded CPython 3.8+ Windows ARM64

pydds-0.0.6-cp38-abi3-win_amd64.whl (77.6 kB view details)

Uploaded CPython 3.8+ Windows x86-64

pydds-0.0.6-cp38-abi3-musllinux_1_1_x86_64.whl (2.1 MB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ x86-64

pydds-0.0.6-cp38-abi3-musllinux_1_1_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ ARM64

pydds-0.0.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (1.5 MB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ x86-64

pydds-0.0.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.3 MB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

pydds-0.0.6-cp38-abi3-macosx_10_9_universal2.whl (456.3 kB view details)

Uploaded CPython 3.8+ macOS 10.9+ universal2 (ARM64, x86-64)

File details

Details for the file pydds-0.0.6.tar.gz.

File metadata

  • Download URL: pydds-0.0.6.tar.gz
  • Upload date:
  • Size: 671.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pydds-0.0.6.tar.gz
Algorithm Hash digest
SHA256 f83e95f6cc5092eacb9b3862cfaee3172d37bd17ae65f78419796d1ac9e40613
MD5 fb4dc7871e81d8627c4cb8374a171013
BLAKE2b-256 372ae49b593bc06f0aa4951d653179c304962f896b35ff037542d9ce3b33c5f7

See more details on using hashes here.

File details

Details for the file pydds-0.0.6-cp38-abi3-win_arm64.whl.

File metadata

  • Download URL: pydds-0.0.6-cp38-abi3-win_arm64.whl
  • Upload date:
  • Size: 67.8 kB
  • Tags: CPython 3.8+, Windows ARM64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pydds-0.0.6-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 baae3d2b721d75a2aaa271d1fae847936f4c46709725d9bf4cc64918ad3c83c6
MD5 880fbf377e0276c61a54493657e85232
BLAKE2b-256 14aa05305c509adc21e5c2f6b1fb3b09b8414b2d5c1547234b66f77c3ebd3b87

See more details on using hashes here.

File details

Details for the file pydds-0.0.6-cp38-abi3-win_amd64.whl.

File metadata

  • Download URL: pydds-0.0.6-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 77.6 kB
  • Tags: CPython 3.8+, Windows x86-64
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.1

File hashes

Hashes for pydds-0.0.6-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 6d11e0f2ebcdaa196d8b20a3bddb66f73ac2ced26e6f0f81d9357d373ce2f4c3
MD5 7ee80c2b6c77507de7c1c48436afede3
BLAKE2b-256 6e09af574ffdc68e8129385301dbbbb07e64f6eafc4937dccf51355cb70e21a0

See more details on using hashes here.

File details

Details for the file pydds-0.0.6-cp38-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.6-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 df5f9d9f07a5f11294f1fbb165659d100601b12718ee42e38a66354848bc6048
MD5 7ba9dd63dd0ca5862ce85dbcdc22f82e
BLAKE2b-256 d95333c90a793b33df2444b606c7bf6ce97bae0841e40cec5b72d08c95cb2d15

See more details on using hashes here.

File details

Details for the file pydds-0.0.6-cp38-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for pydds-0.0.6-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 77f3c95ff5becb2fd06f8c7bcab2e547c396344b911c4a956e0a1d0ca0d6b6df
MD5 8b7527841a83b7db6019fdb9e8e3e095
BLAKE2b-256 50de2501dcb71115adb9e56ecd23abd7a16641ef1f6a2619bc9257ef255042e8

See more details on using hashes here.

File details

Details for the file pydds-0.0.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.6-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f0ef9e96d355362e5a8db22be42fda38f8281a343e7981b78468c0b85e9158a4
MD5 e83e6cd50ffb7ae5308b7c10511f5cee
BLAKE2b-256 314c47cd02ae296ceebf7c243265cf6e039d779344272cb2bd8010d8c734b0af

See more details on using hashes here.

File details

Details for the file pydds-0.0.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for pydds-0.0.6-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 db8be75f08a8a292ae9d950655d1f53075190ef8e3a2aff7ee810869d49954d4
MD5 b9ec99d3e09ce13804655e783654ecc1
BLAKE2b-256 7fb0c5e94cb84c60c57b20bdbbef1cf2b5b9b2cdebeba9e60e987496f20c71f4

See more details on using hashes here.

File details

Details for the file pydds-0.0.6-cp38-abi3-macosx_10_9_universal2.whl.

File metadata

File hashes

Hashes for pydds-0.0.6-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 ea1d145faf03191d561af67c5ea2686251492450672aa84267644834c21b9f68
MD5 0954577bcdfe1bd51739cf62009931f6
BLAKE2b-256 245359c12cdf6350d1907f240a4fd827b35e7989e41891d851b1f4725890de35

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page