evanw/thumbhash
关于
一种非常紧凑的图像占位符表示方式
设计与媒体实测星标增长
- 24小时
- 0
- 7天
- +4
- 15天
- +6
- 1个月
- +10
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文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 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.
探索相关项目
加载中…