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

from dds import decode_dds
import PIL

# 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: PIL.Image = 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.3.tar.gz (670.0 kB view details)

Uploaded Source

Built Distributions

pydds-0.0.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (267.9 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pydds-0.0.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (268.9 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pydds-0.0.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (269.6 kB view details)

Uploaded PyPy manylinux: glibc 2.17+ x86-64

pydds-0.0.3-cp310-cp310-musllinux_1_1_x86_64.whl (892.1 kB view details)

Uploaded CPython 3.10 musllinux: musl 1.1+ x86-64

pydds-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (373.2 kB view details)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

pydds-0.0.3-cp39-cp39-musllinux_1_1_x86_64.whl (892.8 kB view details)

Uploaded CPython 3.9 musllinux: musl 1.1+ x86-64

pydds-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (373.4 kB view details)

Uploaded CPython 3.9 manylinux: glibc 2.17+ x86-64

pydds-0.0.3-cp38-cp38-musllinux_1_1_x86_64.whl (892.1 kB view details)

Uploaded CPython 3.8 musllinux: musl 1.1+ x86-64

pydds-0.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (373.1 kB view details)

Uploaded CPython 3.8 manylinux: glibc 2.17+ x86-64

pydds-0.0.3-cp37-cp37m-musllinux_1_1_x86_64.whl (893.7 kB view details)

Uploaded CPython 3.7m musllinux: musl 1.1+ x86-64

pydds-0.0.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (374.6 kB view details)

Uploaded CPython 3.7m manylinux: glibc 2.17+ x86-64

pydds-0.0.3-cp36-cp36m-musllinux_1_1_x86_64.whl (893.7 kB view details)

Uploaded CPython 3.6m musllinux: musl 1.1+ x86-64

pydds-0.0.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (374.6 kB view details)

Uploaded CPython 3.6m manylinux: glibc 2.17+ x86-64

File details

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

File metadata

  • Download URL: pydds-0.0.3.tar.gz
  • Upload date:
  • Size: 670.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.10.4

File hashes

Hashes for pydds-0.0.3.tar.gz
Algorithm Hash digest
SHA256 46cbcc658da5c16b2e7f3a9b92c2a37e49292cdaa3ba62fd96a5b4248b04d573
MD5 c7cdde0a89f459d8c41304530d5700d7
BLAKE2b-256 0bde6d05cd99ef9ce5c96bcaef2a58936020b90ea06fcd1d19f84a4483007f3c

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 fe94359fe1a8bb816fed9d41863417aa1e13a31d3043635d5ad742340e54235b
MD5 15978c760369ebb438cc8a1e9c1e8177
BLAKE2b-256 04b3123f7ceaeb93f43fca8b30b14da32034a006c96eac19558aaf1d2bf0950b

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-pp38-pypy38_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 f08b0f3fe952b24a8c265989a742abd40577f49a1874a86fad4546a2c94a76ea
MD5 b5aff28656992f78f85c23abcd92fd76
BLAKE2b-256 02ab8567bcf2398d08b85165a114ba756e20b740892796626b2e95b2ff04bc1e

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-pp37-pypy37_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 76d11c1f6ae5352699231b9e798fecbd2d74a48fdee6d88e5ea4c883d8df2357
MD5 89f26d210a007630c54dec97109c5fa0
BLAKE2b-256 eca8f1c6ef89c94248e228a98515aa1a001c660da8cd24eae8f3f9b63cfc2946

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-cp310-cp310-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-cp310-cp310-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 ff91b0677f4bb34dfbeddf036588afb85f2304bbec47796ad2539130c1c5338b
MD5 87b8db047b5dd062b458563d788d3254
BLAKE2b-256 4350ddc924f59cd495e5b8acef36162d4fffb00643bdd237c4c29460c998f432

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 27d13cf0985da9704b674bfb5c073cb7535dccee75e07fc0df6b281eb61741c7
MD5 af611ab8aa265c79f4414002113061c4
BLAKE2b-256 15ac85fcaca53ec4c8de5fb5c138b235921894bcea2dc6f0a9172c89e53a418e

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-cp39-cp39-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-cp39-cp39-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 707063fc54845e1a38f91ab39a2b415637d5194ef578478fb833bd42fb9851f6
MD5 8e7f8aefb63bd96ae55fefa20bc4f6da
BLAKE2b-256 1e0b8b2fe270b49240b42b534355c76ff33883518a0f69f0ac7d5a84cf8cadda

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 743a3b97e03de265ccbb7ca95417740ca71cab7042b5056731abcc9fabd5fb70
MD5 6753986c55c2ca24a8fcb3a587d18f76
BLAKE2b-256 66658bd35e4907d041cc8f246c4c661e1d7b469115492d29b11af21a1902d7a4

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-cp38-cp38-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-cp38-cp38-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 e762c8bf72bbf747738e4d6f81020fd73b47fcfe658ba344dd9faa7decf423b5
MD5 425e9ad97c5d2285b705132b2cf42c5a
BLAKE2b-256 14deb641e4b7be214b6bdbe9fa79190ec12fd046a8a72448a978dc992fe1fc0c

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 207963c33e9b54b9400c4ce8d7275bce64920af9f702eaeeb4e1cf96e0275ade
MD5 d90a040a7a25c98ec1a014cdf0818534
BLAKE2b-256 18b3d12b401a7166fa34ef8d97d2c02c906dc73698703296314992e3ed108763

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-cp37-cp37m-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-cp37-cp37m-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 348b4e405e844d861216ccd4b64c1eb93d511e31bfbefaf497ee1ee888579295
MD5 59b7c6b49f80154f4ab8db6c69adbd54
BLAKE2b-256 972b49d025ec162990b77e1d2d370e572b4ca5e0181ab5c5bc8b240d7bb46c2d

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 70f9fafef98b04e00b311b7d826c4604dd3d3fb67c471d0a3d2bd09904738e49
MD5 d07562d7d6825a9c364885612cca976e
BLAKE2b-256 eef42f547ab56327b6149e75469b43c127b756203e711caf60184a4812f2cf06

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-cp36-cp36m-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-cp36-cp36m-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 f04966546ad0f017a06893295068a73003cdd9921e04adb51e44d654a0f1aa5e
MD5 a8070401d7384b720553f07f63b2f12a
BLAKE2b-256 a7d73709922120b2647974edf0f6a20a06112a359b7418a93a36730c620b0b57

See more details on using hashes here.

File details

Details for the file pydds-0.0.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for pydds-0.0.3-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 8efbe5c960432e1ca40b94c46094eaeab527a0ed0ea1550a5f892429f7cbe323
MD5 dc6f757f4a1b70d602e3114f1afd77e2
BLAKE2b-256 e29300641f444ebaf311b9f607c56a76ce98c3c6a842dd5fa65446649a3ffb76

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