一键导入
front-matter-image-converter
Convert local images referenced in Hugo front matter to modern formats (WebP) and update front matter using ci/convert_page_images.py.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Convert local images referenced in Hugo front matter to modern formats (WebP) and update front matter using ci/convert_page_images.py.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | front-matter-image-converter |
| description | Convert local images referenced in Hugo front matter to modern formats (WebP) and update front matter using ci/convert_page_images.py. |
Use this skill when you need to:
index.md.The script ci/convert_page_images.py scans index.md front matter, finds local image paths, converts eligible files to .webp, updates the YAML front matter to point at the new files, and deletes the originals after successful conversion.
Supported/behavior notes:
.png, .jpg, .jpeg, .gif to .webp..webp inputs..svg as non-convertible (left as-is)..avif is recognized but conversion depends on Pillow build support; if conversion fails, keep the original and report the error.Process all tools under content/ (default root):
uv run ci/convert_page_images.py
Process a specific subtree:
uv run ci/convert_page_images.py --root content/tools
Process a single page bundle index:
uv run ci/convert_page_images.py --file content/tools/html/tool-slug/index.md
Adjust WebP quality (1-100, default 80):
uv run ci/convert_page_images.py --quality 85
git status to confirm which images were converted and removed.index.md front matter and ensure references now point to .webp files..svg) remain intact..avif, leave the original in place and consider keeping it (already modern) or replacing it with WebP manually.