Skip to content

Shenrui-Ma/video-regen-recipes / templates/drawing-process/svg-redraw-comparison

svg-redraw-comparison

Unverified

用参考图制作高精度 SVG 临摹绘制过程视频,交付纯 SVG 网页、独立 SVG 和原图对照 MP4。禁止 Canvas、位图嵌入与外链,按构图、线稿、固有色、阴影、高光、细节重放;横图上下、竖图左右合成。

FileKindSize
LICENSEother1.1 KB
LICENSES.mdmarkdown998 B
README.mdmarkdown2.5 KB
SKILL.mdskill md3.8 KB
assets/manifest.jsonconfig320 B
assets/reference.pngbinary2.7 MB
examples/demo.htmlother30.1 KB
examples/foundations.svgother597.0 KB
examples/preview.mp4binary3.2 MB
examples/redraw.svgother15.6 MB
examples/regions.jsonconfig6.7 KB
examples/validation.jsonconfig2.1 KB
profile.jsonconfig2.2 KB
prompts/author-original.prompt.txtmarkdown1.2 KB
prompts/redraw.prompt.txtmarkdown1.2 KB
references/validation.mdmarkdown1.2 KB
references/workflow.mdmarkdown5.0 KB
scripts/_contours.pyscript1.3 KB
scripts/_regions.pyscript1.2 KB
scripts/_validate_svg.pyscript1.5 KB
scripts/build_demo.pyscript5.9 KB
scripts/clean_png.pyscript2.1 KB
scripts/export_video.cjsscript6.1 KB
scripts/package_demo.pyscript3.4 KB
scripts/trace_reference.pyscript5.0 KB
sources.mdmarkdown1.7 KB
tests/check_player.cjsscript3.9 KB
tests/test_pipeline.pyscript4.2 KB
web/load-art.jsscript3.2 KB
web/player.cssother738 B
web/player.jsscript2.3 KB
# 基于大模型的SVG临摹重绘

**给一张图,制作“原图对照+完整 SVG 绘制过程”视频。**

> “按这张图做 SVG 临摹,从构图、线稿、固有色到阴影、高光与细节,最后导出对比视频。”

横图默认**上方原图、下方绘制过程**;竖图默认左右对比。纯 SVG Demo 不嵌入原图,参考面板仅在视频合成时加入。

## 怎么用

让 Agent 读取 [SKILL.md](SKILL.md),提供参考图和视频要求。交付包括 SVG、可播放网页和 MP4,不能只交网页就结束。

**参考图 → SVG 临摹与质量检查 → 纯 SVG 绘制 Demo → 逐帧截图 → 视频合成。**

不使用 Canvas,不需要 ComfyUI 或视频推理模型。网页不包含位图或 Base64 图片,脚本与样式内联;轻量示例单独加载本地 SVG 数据,无需联网。

## 实际示例

- [对比视频](examples/preview.mp4):40秒、24fps,上原图、下绘制过程。
- [轻量 SVG Demo](examples/demo.html):HTML 小于 200 KB;下载后打开,按页面提示选择同目录的 `redraw.svg` 与 `foundations.svg`,即可离线播放、暂停、拖动或查看完成图。
- [独立 SVG](examples/redraw.svg) · [完整提示词](prompts/author-original.prompt.txt) · [操作步骤](references/workflow.md)

轻量化保留全部路径与绘制阶段:完整 SVG 约 16.34 MB,阶段数据 [foundations.svg](examples/foundations.svg) 约 0.61 MB。缩小的是 HTML 并消除重复内嵌,不是降低画面精度。通过本地 HTTP 服务打开可自动加载两个文件。

本例采用连续色域轮廓矢量化及语义分层,静态SVG平均每通道色差为1.30/255,视觉接近原图,但并非严格逐像素1:1。它不是大模型逐笔手工绘画或思考过程录像。

模板实现:**Shenrui Ma(四倍体果蝇)**。灵感来源:[Hope麻匪《再给 GPT6 Astra 一点时间》](https://www.bilibili.com/video/BV1azYW6zEXy)。[来源与验证](sources.md)

## 配套资源

- [shenrui-comfyui-toolkit](https://github.com/Shenrui-Ma/shenrui-comfyui-toolkit):本仓库其它模板使用的固定版本图像与视频工作流;本模板不使用模型推理
- [Shenrui-Ma/video-regen-assets](https://huggingface.co/datasets/Shenrui-Ma/video-regen-assets):公开素材库;本模板的示例素材体积与哈希见 [assets/manifest.json](assets/manifest.json)

第三方组件与素材条款见 [LICENSES.md](LICENSES.md),本次验证范围见 [验证记录](references/validation.md)。
slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack."Stars: 198kUpdated Claude CodeCodexVerifiedInstall
ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report.Stars: 196kUpdated Claude CodeCodexVerifiedInstall
ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt.Stars: 196kUpdated Claude CodeCodexVerifiedInstall