Fork 0
mirror of https://github.com/Findus23/thumbhash-python.git synced 2024-07-24 00:22:43 +02:00
An experimental port of ThumbHash to Python
Go to file
2024-06-30 18:22:07 +02:00
src/thumbhash_python change interface 2023-03-27 23:00:57 +02:00
tests change interface 2023-03-27 23:00:57 +02:00
.gitignore add tests and set up project 2023-03-27 22:13:23 +02:00
benchmark.py change interface 2023-03-27 23:00:57 +02:00
LICENSE.md add tests and set up project 2023-03-27 22:13:23 +02:00
poetry.lock use numpy 2.0 2024-06-30 18:22:07 +02:00
pyproject.toml use numpy 2.0 2024-06-30 18:22:07 +02:00
README.md quick documentation update 2023-03-27 22:15:51 +02:00

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.


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.