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.7.tar.gz (671.9 kB view details)

Uploaded Source

Built Distributions

pydds-0.0.7-cp38-abi3-win_arm64.whl (68.3 kB view details)

Uploaded CPython 3.8+ Windows ARM64

pydds-0.0.7-cp38-abi3-win_amd64.whl (78.1 kB view details)

Uploaded CPython 3.8+ Windows x86-64

pydds-0.0.7-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.7-cp38-abi3-musllinux_1_1_aarch64.whl (2.0 MB view details)

Uploaded CPython 3.8+ musllinux: musl 1.1+ ARM64

pydds-0.0.7-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.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (1.4 MB view details)

Uploaded CPython 3.8+ manylinux: glibc 2.17+ ARM64

pydds-0.0.7-cp38-abi3-macosx_10_9_universal2.whl (456.6 kB view details)

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

File details

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

File metadata

  • Download URL: pydds-0.0.7.tar.gz
  • Upload date:
  • Size: 671.9 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.7.tar.gz
Algorithm Hash digest
SHA256 a471523208041d0b1d00f73b474ad2330fa528a39f8fbdaabb652e203af23fe9
MD5 3842c1b53d44273c80180c26f8e7329c
BLAKE2b-256 bbdbe013daf45bc1ecb7e0f0d8be8bde0fd2d1847e3932a4e56928836cd9f261

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydds-0.0.7-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.1

File hashes

Hashes for pydds-0.0.7-cp38-abi3-win_arm64.whl
Algorithm Hash digest
SHA256 4545dae1d3b217363fb7ed62e76fb9e33c1c30f3b699e6a6c76422d482618531
MD5 4b2a6cacb72df82f0e6bc6acd6a3bb0a
BLAKE2b-256 a9e00a3d4d26969fd99cd476087a4055b0f3960bb63264ddd7039f211d727c76

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pydds-0.0.7-cp38-abi3-win_amd64.whl
  • Upload date:
  • Size: 78.1 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.7-cp38-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 9ca5e0e13b0ca549e7636163c0b2d4e194eec08ad8276e8b3ac8115a87ab933f
MD5 e5da4d0eb0547bcdcda76197459f8f06
BLAKE2b-256 3374623b672f0d93252e040342006eb09596f198971c6306efd37958790ffbe8

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydds-0.0.7-cp38-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 0e33364f91b476df69b0460ab57403ef19ceffb39639c04b136634d5d78f7c9b
MD5 61c79177638396dddcc8a14e753101d2
BLAKE2b-256 55e3728df8db5a507b2d9b8004171c744673da46aaedb043ec51c27153b8bd44

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydds-0.0.7-cp38-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 3fb58f5a38e58611e20cd15fd9037d851d7e64b5ae72e1c3a5ebeb4be579c43e
MD5 d60094fa6bca26967fa4ede2bee8dd95
BLAKE2b-256 adb29396a2d1d927243d6fbcfde6c29c78abdc4fad9aa0faae2d27230332a514

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydds-0.0.7-cp38-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 3d150151eaf928691a385a41faa9c5523047bd2c147823c87df2e1930605007d
MD5 5c0cfb89f24f5305e6f872e333e56b4f
BLAKE2b-256 6ff6282db9e28195cd4548a5dc3837c225c21d8b72a3025ace7c3e7a455659c7

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydds-0.0.7-cp38-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d4d9e422120f4de3ce847a40d1e32bbfbd808721ec8d827c6a3106f4c44e3946
MD5 c0c3d79256cf607fbca756b05e38370e
BLAKE2b-256 aecbbcc4efe6dcd0bd95782df31d5e66876b65dd9fc53a96bb3a594c1c8df5e2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pydds-0.0.7-cp38-abi3-macosx_10_9_universal2.whl
Algorithm Hash digest
SHA256 0d496a732370d313c32864246ab1f8876794c26b509aa38b5e32216e41d556af
MD5 9d9f808b7955260ada5b14ef19bcff56
BLAKE2b-256 cd3a19724d4a2387c6ee34c94d45873ad1e7520d99f9979665613dfbf80a4f51

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