mirror of
https://github.com/Findus23/thumbhash-python.git
synced 2025-11-15 12:15:13 +01:00
An experimental port of ThumbHash to Python
| src/thumbhash_python | ||
| tests | ||
| .gitignore | ||
| benchmark.py | ||
| LICENSE.md | ||
| poetry.lock | ||
| pyproject.toml | ||
| README.md | ||
ThumbHash Python
A very quick Python port of Evan Wallace's ThumbHash.
For now only supports encoding images. Gives identical or near-identical results for all original test images.
Disclaimer
If you want to use this code in your project, please fork it and maintain your own version. While it works for me, I can't promise that it is bug free and I will maintain it in the future. But feel free to use this code as a starting point for your own port.
Also keep in mind that this implementation is far for optimal and quite slow (~60ms), which should nevertheless be fast enough for most use cases.