-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[feature] 模式支持blurhash #4
Comments
我没有具体使用过这个,你可以简单说下你的想法吗, // 这种是可行的吗
import img from './a.png?magic=blurhash' |
是这个意思,这样缩略图只需要在客户端将hash解码就能展示 |
嗯,我看了下,在客户端解码,然后 canvas 渲染我觉得是很慢的,尤其一些 ssr 项目,可能会慢几瞬间,我觉得有一种思路比较适合:构建过程中解码,然后转为 base64 占位图,这样我们生产中几乎瞬间可以看到。 |
这个 blurhash 可以根据指定 hash,或者根据图片自动生成 |
发现一个优化版的算法 https://evanw.github.io/thumbhash/ |
感谢大佬的开源项目❤️
希望模式可以支持blurhash,一行hash可以解码成缩略图
The text was updated successfully, but these errors were encountered: