docs: add gif asset hygiene guidance · openclaw/openclaw@975fd5b
steipete
·
2026-04-26
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -73,6 +73,12 @@ Output
|
73 | 73 | - `--json` prints an array of results (`id`, `title`, `url`, `preview_url`, `tags`, `width`, `height`) |
74 | 74 | - `--format` for pipe-friendly fields (e.g., `url`) |
75 | 75 | |
| 76 | +GIF asset hygiene |
| 77 | + |
| 78 | +- Before recommending or using an animated GIF URL, verify it resolves successfully, has `Content-Type: image/gif`, and is actually animated (multiple frames or loop metadata; e.g. inspect with `file`, `identify`, or a small script). |
| 79 | +- Record attribution/license/source URL alongside the asset. |
| 80 | +- Do not hotlink when a local asset is needed: download/copy it into the project and reference the local file. |
| 81 | + |
76 | 82 | Environment tweaks |
77 | 83 | |
78 | 84 | - `GIFGREP_SOFTWARE_ANIM=1` to force software animation |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。