evanw/thumbhash
evanw/thumbhash has 4,236 GitHub stars and 92 forks. GitHot measured 0 stars in 24 hours. Last checked 2026-11-07 16:28 UTC. Last push 2024-05-26.
A very compact representation of an image placeholder
Measured star growth
- in 24h
- 0
- in 7 days
- Update delayed
- in 15 days
- Update delayed
- in 1 month
- Update delayed
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalThumbHash
A very compact representation of a placeholder for an image. Store it inline with your data and show it while the real image is loading for a smoother loading experience. It's similar to BlurHash but with the following advantages:
- Encodes more detail in the same space
- Also encodes the aspect ratio
- Gives more accurate colors
- Supports images with alpha
Despite doing all of these additional things, the code for ThumbHash is still similar in complexity to the code for BlurHash. One potential drawback compared to BlurHash is that the parameters of the algorithm are not configurable (everything is automatically configured).
A demo and more information is available here: https://evanw.github.io/thumbhash/.
Implementations
This repo contains implementations for the following languages:
These additional implementations also exist outside of this repo:
- Go: https://github.com/galdor/go-thumbhash
- Perl: https://github.com/mauke/Image-ThumbHash
- PHP: https://github.com/SRWieZ/thumbhash
- Ruby: https://github.com/daibhin/thumbhash
If you want to add your own implementation here, you can send a PR that puts a link to your implementation in this README.
Explore related projects
codecrafters-io/build-your-own-x
Master programming by recreating your favorite technologies from scratch.
560,892 starspublic-apis/public-apis
A collective list of free APIs
497,128 starsmorluto/rea
Reverse engineer anything with agents, from app behavior down to native binaries.
442,037 starsopenclaw/openclaw
The AI that really does things. Any OS. Any Platform. The lobster way. 🦞
394,169 stars