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.2.1-cp312-cp312-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 536b6e64897154d097150d5365d9c3d65950f9ecc3865edc793426e3d373532c |
|
MD5 | d55457f5733fe00ef027f1377e5833af |
|
BLAKE2b-256 | 2a32373e0f791f2022b80479e78c14637316306423293f85a40b3fdd6dc7056f |
Hashes for quicktex-0.2.1-cp312-cp312-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a918b8ca5791690a80360dbe9865ff6dcbc96ea0a13baec7a6b209c84f99e628 |
|
MD5 | f266dd60de701f3e38a3913cd05d2fd3 |
|
BLAKE2b-256 | 263bee5359bae029c12fb05c1bd5599e50af83386f6f03a255fcb976a299d394 |
Hashes for quicktex-0.2.1-cp312-cp312-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6533e0231741a92bbe22a785f3ea791fea9efeff6ce8bc723d8eb4b9f1509943 |
|
MD5 | d7d38a30c678020dc2a511a371f8e2fc |
|
BLAKE2b-256 | 4b829c8de1fc58d91c859bb63b7a85877cd9f598fa9b75f29388aaa682001ccc |
Hashes for quicktex-0.2.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07ab8777db96a34cf0c680ca7247c398ab7becea008ddfe0502b3a29f1248192 |
|
MD5 | 47ef111e41f493bca1b0ad8f610cc952 |
|
BLAKE2b-256 | 7fc267e3105216a0365d49e1d83642661a8e2301691006276471f54e9f736190 |
Hashes for quicktex-0.2.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f3232e9ba686488fd372ccebb397e9cbfd60196e358ed6d0240b45ecca832617 |
|
MD5 | 438d30294f54020c371f1d6a2a9e4b44 |
|
BLAKE2b-256 | fab89a2fec28bf036492d8ea86f7982915a44c9f9ebd701e07b7c70f929e49ea |
Hashes for quicktex-0.2.1-cp312-cp312-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a4d7d70ecc60055e7d1af38f7aefec73b6c73eab0051ced889c872e9563832b6 |
|
MD5 | 7a5c4b1939c9b46eae457bf84f91e359 |
|
BLAKE2b-256 | cbd629a520111e93821427707d961f9cebe8aec5fad1fba6db6f07358a091027 |
Hashes for quicktex-0.2.1-cp312-cp312-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fe0c4a999da24166eb7e2067770d67f953702dac87b79745bb1521fa0bd68b96 |
|
MD5 | f730f959b11f5dc0cce2ae4e50e2b959 |
|
BLAKE2b-256 | 0ff0132fd46ecadbac4ffd58cd5a0bd64d56f4aef0d217dead3d443f68a4601d |
Hashes for quicktex-0.2.1-cp311-cp311-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7fcc151f65b95af7482f9a08eb5878ab73a97a9e4fb00f93e1c18988f9342d03 |
|
MD5 | ae6085014423801ca0612f6ae88ea447 |
|
BLAKE2b-256 | 248bbc5bd3de27fb0d9313ff5f55529805561f37c46f443d37c66b73d8a773a9 |
Hashes for quicktex-0.2.1-cp311-cp311-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7ed84b2363477ac4772be9ed6c2b4b36f214dc765519845134ab02dd99431ede |
|
MD5 | 8941e6c9b682f97c64026255e9e6a093 |
|
BLAKE2b-256 | 18986836afc7b11c1e525c11646c458a92e103d86f28d9b8f7306628264775a9 |
Hashes for quicktex-0.2.1-cp311-cp311-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 040a51f282294de6160cc96bff6eaad31ffa42c805d82c34e2e202ad83c3fb92 |
|
MD5 | 3246477da673e3507ec2022e26410999 |
|
BLAKE2b-256 | 787bac1677cc0dac60f0863b3211651ddc7a4226066baaefa3838f8e7ed5efe6 |
Hashes for quicktex-0.2.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e71966cb0c5359f19250c14d63fd76cc830d8cb5890ac5a7c6be1051a3a9684 |
|
MD5 | 774b11ac73633a7030aafb87e4595647 |
|
BLAKE2b-256 | b177d0aba146f73109402323cc1c1db248e54a21ee6fd87cf06b9e8edf561fc7 |
Hashes for quicktex-0.2.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f9077f1c077391d3acc07831bf5ff4bd0b7888f38c709d6060385a97481c4c |
|
MD5 | fd6c75b151f912a73cb36561ddf0b4b1 |
|
BLAKE2b-256 | 8b1f45c14f9046ac2c8438506bd40e3d1aa170c9a3b865550ef75743cd3dd866 |
Hashes for quicktex-0.2.1-cp311-cp311-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | bdda29f810c09267ac079cf8788b8916c43f828e0e7e5ba3af612b6d96f7da88 |
|
MD5 | 3b40fa455cbe1954e4bedc0a51538f05 |
|
BLAKE2b-256 | 412427043497185e6adabe627ba5ac0f476871c95a8717b0915d3de15b127a25 |
Hashes for quicktex-0.2.1-cp311-cp311-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4bf2371af891a7559abe525fff0c7c93e235a6876ccc41c4b6aa4fc179758da6 |
|
MD5 | e87b08dc38a97e058ea06d91091a24e1 |
|
BLAKE2b-256 | 5db02621ca46ef1382bcee4805e7791dfe44f17bce70a538d2a6a3a26643866a |
Hashes for quicktex-0.2.1-cp310-cp310-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 99fc35566c4d35370b2986be7928344e8b0bc09be14d35daa7d6b8238dbbe2f6 |
|
MD5 | dc2e1f5aa74fd898ba2b3dba28b6740d |
|
BLAKE2b-256 | 1efdc802a84c186b1643b5607934aa659b5219970a979e913c5ce460b326922a |
Hashes for quicktex-0.2.1-cp310-cp310-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ef5d5f2e4246b7244579c02f419a34193f0760c9a1d724ee78759330883ff400 |
|
MD5 | b0ca1089a71194f0adf50614a1747f82 |
|
BLAKE2b-256 | a747daeb681a5a63cb98098a1f2212f247e2db15a879fdd916a8e4854a82be11 |
Hashes for quicktex-0.2.1-cp310-cp310-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b73984c874f3687f21bd56606bde66bb661c1e59100ecab3a031b146fb5443e8 |
|
MD5 | e006ffc4c4c0b6ce003814b5c32ddb5e |
|
BLAKE2b-256 | 830d09e402a12b0c31605a2304bc65d06b81ce57d88269d639c447fc5642a224 |
Hashes for quicktex-0.2.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7918f68454cc51e1dc5fe29ea4ca4ca62961ac9433489a8b12beae7fa66879bb |
|
MD5 | 4ed3985ea1663f8caca350017daa81e0 |
|
BLAKE2b-256 | dd381c30cee1886c6c10ccd52c7360b8e5f8b0fb4f58c8759dd5572264212079 |
Hashes for quicktex-0.2.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5ff6a6a9cc7827b70537eced332b63972aabf82a2329c7abed3a1426c9344ee |
|
MD5 | a21b50cdf6c53aa593915717a041d608 |
|
BLAKE2b-256 | 393b6fb81f8409b71d6f02d294cf78d866893958f706b7ee414423b62f100c59 |
Hashes for quicktex-0.2.1-cp310-cp310-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1b7643e75a3709553bc0a6a7350e5ad0dfc94b89795baae44d5b40d896ddf419 |
|
MD5 | c3f066d79e797c5445cd30c48e36a922 |
|
BLAKE2b-256 | b7d90cca95ecdf89826cdb69086e7e6d3c4593ffa8847831513e7a9fd5993fec |
Hashes for quicktex-0.2.1-cp310-cp310-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b7794e60240b61ac2fb65450a0175fb5e05d8b809b632037b47e0e9487d7f0ef |
|
MD5 | 02ec3c31d27d5c424822f527862eface |
|
BLAKE2b-256 | e0fb8f378d7678650c643950562156a84524706965c435de40f3b98b6fc5126b |
Hashes for quicktex-0.2.1-cp39-cp39-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ab7aa33eef24a3576f6d31db2a2e6911fb2cdd5fc73595a336b239548985e10 |
|
MD5 | 7622928a01a97ace0e7d7751ae194357 |
|
BLAKE2b-256 | 61309278fa5d2bce3eec95c2b789c9fec11fb1f9cddb32b0c614844150e41016 |
Hashes for quicktex-0.2.1-cp39-cp39-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | e45e7ce1c8c0ec4778c633779e1af97e56c8f270554c314fba0c09ebed284032 |
|
MD5 | 671ec29897efcb680bc75030522016ca |
|
BLAKE2b-256 | fed44b1ffd2e5873268beb04dca38f167ed1ffb10545c9878d1de5318f7da64f |
Hashes for quicktex-0.2.1-cp39-cp39-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 28894f2929b9189da5b096b16dbe2bdaa419f5fce2b4e0538d47a909f6197443 |
|
MD5 | 642893a11c4e690fc3060ed91c21b510 |
|
BLAKE2b-256 | 1bfab447d8bc8e8cd780043c6827944372257583718894729c62376d1a0fcb48 |
Hashes for quicktex-0.2.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3b7bd982206e3005220dd54e32bcc183c2e4bac8096c80262de36ea0d2b19528 |
|
MD5 | df0759d343f63fc846f4fd5662891b92 |
|
BLAKE2b-256 | dc7ceece17b3f2895cf32cd6bdcf46f40eb51bf4b446293ef3f168e4ea6afc40 |
Hashes for quicktex-0.2.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91574e1be5c3eced5690ead52ed96618e79ff71cf9d1b0bc6c3d9bf1429a0cd9 |
|
MD5 | d9e38becc48f770446cf05e97532be8c |
|
BLAKE2b-256 | 1d166d6a18391b19700d2918c8e15e073c420307f815cb5fa1fbe2b71b89acf9 |
Hashes for quicktex-0.2.1-cp39-cp39-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 660da1d2addc63241bfd6075d5ab26141d1c103882ac8e03a1d037f723bf6a2c |
|
MD5 | 17e65484994e4f7d1083746d4f421c26 |
|
BLAKE2b-256 | 95fd5dac10c8d0f6b3ae61b4cdf6146ca30fee297233bd8d96f1637ff477d6ed |
Hashes for quicktex-0.2.1-cp39-cp39-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 738a895d5614fc7fdd0afd6d43c12f877498bab745c7ff241a8c4cbc87fcc8df |
|
MD5 | c335b18f167ec95b935239cc63e936cf |
|
BLAKE2b-256 | 9ed7718a6bdd1bdf49b915040ef56f5afe14c09161452a5f1ec7b986e9f15f7f |
Hashes for quicktex-0.2.1-cp38-cp38-win_amd64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 116abba67e0fa0d05bafa759b68a8fa956d120c2c941c15032e01c88d1185610 |
|
MD5 | db5d0877ee2af3823e21a9cd50ad5ac7 |
|
BLAKE2b-256 | de4a19ef9a3e1f54bc57bbbe9e71ccd5302bdcb44eab32b121dc831aa93f73c8 |
Hashes for quicktex-0.2.1-cp38-cp38-musllinux_1_2_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 07303d9e090ea13d60257c6cd0e4f519bd2fb7d8d992c4cda7bcb39370f51bb3 |
|
MD5 | 3934af054dfc4b9277b5463066bf4ac9 |
|
BLAKE2b-256 | b5f22cc3531d2afac5d399d5eba978e178c74397f664fe7b058f0db553d31cb2 |
Hashes for quicktex-0.2.1-cp38-cp38-musllinux_1_2_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 533b881c865fe84fcf84e5af5188c2597bf211e3dd0b92a1db4132b8619f9dc4 |
|
MD5 | cfc1d6d09d03bc9685c0fcd394059e7c |
|
BLAKE2b-256 | 40eb58690162a4e771116b7fd68593116e973baa485acb0240145e6760cbacb8 |
Hashes for quicktex-0.2.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | aec69a4c5c900862fc74f1523222969dc1361ff3287b5d5a7d2af16e31f47e8d |
|
MD5 | 479f75504adb78de306f5c57da49433c |
|
BLAKE2b-256 | 1d4b9fcb6e6438cbd2f3b43a8e0666d758e309ad377d49717c294c2e3b6e99c6 |
Hashes for quicktex-0.2.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6d0de1715db8d78b3aac21c365e34df77a6aef58f8bc6e4730dfdc1dbda7d195 |
|
MD5 | 6a9e185352efe805954abf0313c147cc |
|
BLAKE2b-256 | a66b97be617b34e89bb32271a703dd0b5400038ae273bb2a7aa36676def9a44a |
Hashes for quicktex-0.2.1-cp38-cp38-macosx_12_0_x86_64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6156082dd368dabb2538bc47dcade26edaa527313b5fcb37916185894d7ccc49 |
|
MD5 | bbf7429783a05d734eae556fd8b36ebc |
|
BLAKE2b-256 | b4bdd4385b6ff94c65f3e36ab5775f82428857396f5d8840e2b87f64ef709247 |
Hashes for quicktex-0.2.1-cp38-cp38-macosx_12_0_arm64.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8508af0ec09645820f08eedcf709e7080aa1a5661170116035110da5aa12b162 |
|
MD5 | c94df1fe1009e2bfc0b1b6cda9169e66 |
|
BLAKE2b-256 | b7b8eb2fbfb25898263721946282c865aee0de7faa475a877987473fdb6a7832 |