Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/evanw/thumbhash
A very compact representation of an image placeholder
https://github.com/evanw/thumbhash
Last synced: 4 days ago
JSON representation
A very compact representation of an image placeholder
- Host: GitHub
- URL: https://github.com/evanw/thumbhash
- Owner: evanw
- License: mit
- Created: 2023-03-22T06:59:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-05-26T10:17:57.000Z (7 months ago)
- Last Synced: 2024-12-02T18:16:52.556Z (11 days ago)
- Language: Swift
- Homepage: https://evanw.github.io/thumbhash/
- Size: 103 KB
- Stars: 3,596
- Watchers: 14
- Forks: 73
- Open Issues: 23
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome - evanw/thumbhash - A very compact representation of an image placeholder (Swift)
- awesome-github-repos - evanw/thumbhash - A very compact representation of an image placeholder (Swift)
README
# ThumbHash
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](https://github.com/woltapp/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 alphaDespite 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:
* [JavaScript](./js)
* [Rust](./rust)
* [Swift](./swift)
* [Java](./java)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._