Open
Conversation
zkitefly
requested changes
Apr 1, 2026
Contributor
Author
|
鉴于等待黄鱼审核可能会拉长本 PR 的审核周期,故此使用了由 drone 提供的环境变量 |
Member
|
自动转换 webp 后原图片文件会清除吗,这样可以减轻源服务器的储存压力吗?(有压力吗?) |
Contributor
Author
这个我没有统计过,不过这个压缩可以通过 quality 参数调节,我没指定默认应该是 100
不会清除原文件,当前是通过把 img 包在 picture 里,如浏览器不支持 webp 会自动回退到原文件。 <picture>
<source srcset="/assets/img/docs/isolation/img1.png.webp" type="image/webp">
<img src="/assets/img/docs/isolation/img1.png" alt="">
</picture> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
添加 kramdown_enhancer 插件
变更
Note
变更 3 通过引入新的依赖实现,需要注意的是该依赖仅在特定环境下方可使用。
https://github.com/le0pard/webp-ffi
Note
本 PR 中包含了手动转换为 WebP 的 GIF 文件,这些文件是在 win 平台下由 gif2webp 工具
gif2webp input.gif -o input.gif.webp手动转换生成的。resolve #318
https://link-docs.hmcl.workers.dev