https://github.com/findus23/thumbhash-python
An experimental port of ThumbHash to Python
https://github.com/findus23/thumbhash-python
Last synced: 4 months ago
JSON representation
An experimental port of ThumbHash to Python
- Host: GitHub
- URL: https://github.com/findus23/thumbhash-python
- Owner: Findus23
- License: mit
- Created: 2023-03-27T20:14:41.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-02-09T22:44:32.000Z (over 1 year ago)
- Last Synced: 2025-03-28T21:42:47.932Z (about 1 year ago)
- Language: Python
- Size: 85.9 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# ThumbHash Python
A very quick Python port of [Evan Wallace's](https://github.com/evanw) [ThumbHash](https://github.com/evanw/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.