BlurHash: A compact representation of a placeholder for an image
8 months ago
- #user-experience
- #web-development
- #image-placeholder
- BlurHash是一种用于图像占位符的紧凑表示方法
- 它用美观的模糊哈希状态取代空白框,让设计师感到愉悦
- BlurHash字符串很短(20-30个字符),可以存储在JSON或数据库中
- 该流程包括在后端将图像编码为字符串,然后在客户端进行解码
- 解码后的字符串会在真实图像加载时创建占位图像
- BlurHash是平台无关的,各平台都有相应的库可以使用