A fast block compression library for python
Project description
Quicktex
A python library for using DDS files
Quicktex is a python library and command line tool for encoding and decoding DDS files. It is based on the RGBCX encoder, which is currently one of the highest quality S3TC encoders available. Quicktex has a python front end, but the encoding and decoding is all done in C++ for speed comparable to the original library.
Installation
From Wheel (Easiest)
To install, run
pip install quicktex
If you are on macOS, You need to install openMP from homebrew:
brew install libomp
From Source
To build from source, first clone this repo and cd into it, then run:
git submodule update --init
pip install .
and setuptools will take care of any dependencies for you.
If you are on macOS, it is recommended to first install openMP from homebrew to enable multithreading, since it is not included in the default Apple Clang install:
brew install libomp
The package also makes tests, stub generation, and docs available. To install the required dependencies for them, install with options like so:
pip install .[tests,stubs,docs]
Usage
Usage: quicktex [OPTIONS] COMMAND [ARGS]...
Encode and Decode various image formats
Options:
--version Show the version and exit.
--help Show this message and exit.
Commands:
decode Decode DDS files to images.
encode Encode images to DDS files of the given format.
To decode DDS files to images, use the decode
subdommand, along with a glob or a
list of files to decode.
To encode images to DDS files, use the encode
subcommand, plus an additional
subcommand for the format. For example, quicktex encode bc1 bun.png
will encode
bun.png in the current directory to a bc1/DXT1 dds file next to it.
encode
and decode
both accept several common parameters:
-f, --flip / -F, --no-flip
: Vertically flip image before/after converting. [default: True]-r, --remove
: Remove input images after converting.-s, --suffix TEXT
: Suffix to append to output filename(s). Ignored ifoutput
is a single file.-o, --output
: Output file or directory. If outputting to a file, input filenames must be only a single item. By default, files are converted in place.
Project details
Release history Release notifications | RSS feed
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
Hashes for quicktex-0.3.1-cp313-cp313-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe9356f7625def69bf58c0dd6ee67bba7155d80e39eeb36cac0d79021d3d729e |
|
MD5 | d2f935e325df604580ffad77de84adab |
|
BLAKE2b-256 | 5bacee25c6abbefbe835d339207a24225e4f143743a39d5c67676ab08624d8b8 |
Hashes for quicktex-0.3.1-cp313-cp313-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e9b1894cd093b24507c2c92dfff7273a087359d1db8d85ea149c4b1950f5a9b8 |
|
MD5 | 4a511e2e8b476d5ca3b83272bfc14a50 |
|
BLAKE2b-256 | 68f88b6ab9faed514ba96db7ba1f1357c6afaa7406be78efabc2df19e33ac13e |
Hashes for quicktex-0.3.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 37785ca871fa8fa146a46dc76eee691c64685d6abf3166d5504783b462aa70f2 |
|
MD5 | 162688f102e92c4ebe425341c37b9cb6 |
|
BLAKE2b-256 | 763c0e2f6c05f56adfbfdcb6e81f6eaa54d8a431672e1fab21dee7c0f45b312a |
Hashes for quicktex-0.3.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 769fb4836aa8f0fefe3a3b9ae0b22104bf525042668aebb1eded53f7168e8328 |
|
MD5 | d094d8057d2d077c169c3e29ee001d70 |
|
BLAKE2b-256 | b375439c0963802978c4c01e75a150d3923df88d2b5875918a4dcb90433280e8 |
Hashes for quicktex-0.3.1-cp313-cp313-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8fa8a15e38da2330d2693ca6947c5cc543038c3511bed4b4f4c1313843beb03f |
|
MD5 | 555559d0fd59cba17f794a5308850580 |
|
BLAKE2b-256 | a03424dd88b351624f8f7abbbe81cc059faf296f35a267e9fd764df99e2c7575 |
Hashes for quicktex-0.3.1-cp313-cp313-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 777a17cb18fbb601791f0d3738b4f19e5c1022b77af7176f97656b23d3280a33 |
|
MD5 | f5eeafea97bd3e4965d8979e29f4321c |
|
BLAKE2b-256 | 13eb29e550aecbee95054be1505fecc046be1f7bf0c29594e4d5ef4a43e8101b |
Hashes for quicktex-0.3.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dcd3ed782f620af6f05d2bfc881ece60044594a12042bf39c0dcc41f32b3306 |
|
MD5 | 69b924b352e0066023eee7de650eac34 |
|
BLAKE2b-256 | 77a4ebcbf9569c5efe78b46dc373a703ad136760ed76470ea3374ae9e634750f |
Hashes for quicktex-0.3.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ecd442c75713e42f701409d99367ae69919fc4e816bb92863a450fc8b5491e7c |
|
MD5 | 0430ecac053a755bb916ae7fd678e85d |
|
BLAKE2b-256 | c73deef288ecfef5540bf9741ea11b5133f784b1f3c16966a5c7670894d1f972 |
Hashes for quicktex-0.3.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07275538fb59974f8ce734a1df318c33c20a48c1e681a9db15c708b8472ef65f |
|
MD5 | c767c7e37a0a7e41a7665cac11bc8181 |
|
BLAKE2b-256 | b42318c9c74e2218b55addb4eab9b33dcec5446c1bd6f98d74caef171ddacf5b |
Hashes for quicktex-0.3.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e0ba921d1f1729533f5116942dbff9f45ebc98c3673e596be9fba0b1057ab183 |
|
MD5 | 4f49f40e7bf5bf8f225d2452b24f64c6 |
|
BLAKE2b-256 | 45acd5c3d3ca8d72e110fcd35ae9b6d68e88523f441a85a4c72069b3dad4c445 |
Hashes for quicktex-0.3.1-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 312b42aab3c4260d415d8b36a45886314718992d9f411aaf623fd344a76fed59 |
|
MD5 | 942e0e582ff5d92fc62770f367f0f727 |
|
BLAKE2b-256 | 0b971e3cf7d1af0558766e8af4f7c7067f95e01d97f499643164ccbe3cabe794 |
Hashes for quicktex-0.3.1-cp312-cp312-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6269cbe53b4faadf0df4e9fabd0f47ce35630e60ff3b51c4c53a163041c196e1 |
|
MD5 | 567160c6a2d0245578534c8245d51c3d |
|
BLAKE2b-256 | 16253715468f610a658045d230e376437ab0f06a640f893ce6bc954bc3181a91 |
Hashes for quicktex-0.3.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ec10a6b741db8f36a5f557c694a5846bb77a40634352b572635d267f94d2a6af |
|
MD5 | 9d0325e284a023ee34088eb388dc5ab3 |
|
BLAKE2b-256 | 5d1d8ed720e40af6df7a5339d437a92393f3ac21ad1511be788b93ca25013897 |
Hashes for quicktex-0.3.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9959245843ac8adebd0716fb3280ef376fba688859e7e97f7b77af91b94e00b8 |
|
MD5 | 96b7a77c088199e5062d3a5f190b4026 |
|
BLAKE2b-256 | c3e1c118ce26e1360afe30889f09a4879f81cf617ff68bfb7bd88064f9ff1b46 |
Hashes for quicktex-0.3.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce5a1cdd59b346eaeae50b620454e638602a43f8636bbbc153b4127602bcda45 |
|
MD5 | f4122fe50c12a0dfcd0701954e57ab07 |
|
BLAKE2b-256 | 00b2856ecaea0131e09b208931286930efd8d6b1ed9445c5fa56c63fb8926ef2 |
Hashes for quicktex-0.3.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7668a9d5ad00c075c3744b0e9c2b85687dddc97349b0a582177e9125485c0e8e |
|
MD5 | 6f73d401f3b4dfe51db5bd4c95582956 |
|
BLAKE2b-256 | a53d6538da0321a5a002c02e709e0943f6084dc1155342b233742c480a8904ff |
Hashes for quicktex-0.3.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 02e1094912636ab8b90360f7355e791e2381b9e6e62a7504912c693fa6002c3e |
|
MD5 | cd34c5fe5b52124beab75060d365c970 |
|
BLAKE2b-256 | fb2045a1378c7711300c4052074a6255c7472b6906d48b72de704a875083ed81 |
Hashes for quicktex-0.3.1-cp311-cp311-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6fb7c37b7ececb3d01b69a28f59ec99de7645e6eb3bc4caa5bbb9d606a0c1a51 |
|
MD5 | 0ab7aff27013625c71c511a050cab2de |
|
BLAKE2b-256 | bc02a9888e95b16b8e897e99507213ae5ec5129b46db3d418f99c0daebc0cb60 |
Hashes for quicktex-0.3.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 162efcbccc76cf4be1ddca386c33cb4914cc2238983336f983e7f46702f23dae |
|
MD5 | ea515e5481e1dd895c9953c5f5977221 |
|
BLAKE2b-256 | 88c7a3cc64aaab7e1ca10e00e0c80569e937277abbc7ce10c10cc3745c6668a2 |
Hashes for quicktex-0.3.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8c5058e3ee7b10d52b6b62c9f76e1877464cd0d0c386b622c2998e7448ba381d |
|
MD5 | 6afecb2625768648f23c956082ec394d |
|
BLAKE2b-256 | f423fe714f32d31f250e04c37c4cd619adaf2ad131e756b01f55996ecbcb10eb |
Hashes for quicktex-0.3.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9503d225ee1295df4134a2fcc1b0c9ad37cfb043fffadb4a6db8f0625c0fabb1 |
|
MD5 | 0b8221e5df08374a2eb7a2444d090373 |
|
BLAKE2b-256 | f7ee5ca818d7db554caa97329f0c18aeae40c59ce86ca6cfadb6f90c14a5c4c7 |
Hashes for quicktex-0.3.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 039f2115abc82d14ed26cf161f71a54686f7e9fe9e945a9617c3d46198d01ce5 |
|
MD5 | c55e989611cc0ee570250cf6244a0b6e |
|
BLAKE2b-256 | be91596b3009b861318035b7a0319e6ad7de1f280a309ff77784ac1a9fdab503 |
Hashes for quicktex-0.3.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1671148a2e37329c4c93ca74cbf9826ae62a47aec3dbf62bfb508b33494ae84a |
|
MD5 | 9345d83184d09a7566f75dce46395b11 |
|
BLAKE2b-256 | fbda46a0124d9c562f3a02635b14ff47f174d928a24fbf620bf9749edd2a869f |
Hashes for quicktex-0.3.1-cp310-cp310-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09755f283e792f8fd2e926b4eca175f8ea642aa3dec091ee4af78a100d94ad0a |
|
MD5 | a685d5c09176123ba28a327b06a92619 |
|
BLAKE2b-256 | acff626f266c6346a20363a3e08e3b6332f27ce03b6bdccd5b2e0cc37ed00d6f |
Hashes for quicktex-0.3.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f607d3a8e4ac572241be4b3b221826912bb04d59ebc22e8e83b89fd43e7e543b |
|
MD5 | edde534ab9df85b556288b44ed3ef344 |
|
BLAKE2b-256 | c956da820cf4520d1eda79da6a48e3fc554d6c53caafb5d4caed3e1ac425c028 |
Hashes for quicktex-0.3.1-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f0a5fcd4656cffb2e5b9f90bfa12ad638c8dcea7afe6faeab4058364946b46b |
|
MD5 | 2fd5c33c27a01e779e2ff92877a43224 |
|
BLAKE2b-256 | 3676c8e1129d2fb61b5b8dd8402ec9eee33e362ec07863a57c60157e0ff1ec7f |
Hashes for quicktex-0.3.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c8c09a2b8895a73b794de7d327a027885e834ddaba5bb1ed89a28ed26b3ec2 |
|
MD5 | 30810c75a50f4e0b25c54b8e06cb0ebd |
|
BLAKE2b-256 | 1687f249494a3cd58f321abb5ef943195172676bb2838072b6fd46fb33317ee6 |
Hashes for quicktex-0.3.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d492d4cde2c36ed506ce79e3109d48f9443815006e47882fc420d7ed9b6b6975 |
|
MD5 | ec735cbaa2f8d07982967d7e1c493b8c |
|
BLAKE2b-256 | 6c87445f715bc1c70dbf8ee9e2263948bece955a85953b9edf0a85b8d0e074b8 |
Hashes for quicktex-0.3.1-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 175621436fecc127bdfb68f9285bf8018ec0784dcd3615e39297ba5cc133eac4 |
|
MD5 | 62b51c4f211b510c2d2142ca647fe2e0 |
|
BLAKE2b-256 | b9990cae739683bc24036489f8986185f63cc277437dd67d732a0340340e4c34 |
Hashes for quicktex-0.3.1-cp39-cp39-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0f5985ec80024f046c95da0352b49717f1e1f2e92eb7c78a366bde110316f164 |
|
MD5 | c8ebd14365bd99e71b5f272196613d2d |
|
BLAKE2b-256 | c379e9abcc59df8f7b886c4f45b7eca715573e241168cf1d1316720949ff065e |