learn-opencode icon indicating copy to clipboard operation
learn-opencode copied to clipboard

每个章节的那个核心知识点的图是用什么工具生成的?

Open lamjack opened this issue 9 months ago • 2 comments

RT,每个章节的那个核心知识点的图是用什么工具生成的?

lamjack avatar Feb 25 '26 03:02 lamjack

同问,感觉总结的真好,求提示词

wangshenzhen0718 avatar Mar 13 '26 03:03 wangshenzhen0718

感谢 @lamjack 和 @wangshenzhen0718 的关注。课程里的“学霸笔记”图是用 Gemini 绘图生成的,不是逐张用 Canva/Figma 手工排版。

当时的流程是:

  1. 内部 notes-gen Agent 读取课程,提取 3~5 个核心概念、实用技巧和常见陷阱。
  2. 按统一提示词模板调用 gemini_draw。
  3. 使用 4K、16:9、纯白背景生成高清图。
  4. 再用 sips 或 ImageMagick 生成 1920 px 缩略图。

核心提示词骨架如下:

Create a clean, professional student study note about [课程主题].

VISUAL STYLE:
- Pure white background
- Neat handwritten style with colored highlights
- Clean and organized layout

COLOR CODING:
- Pink: warnings
- Yellow: key concepts
- Blue: code and technical details
- Green: practical tips

CONTENT:
- 课程标题
- 3-5 个核心概念
- 代码或配置示例
- 实用技巧
- 常见陷阱
- 总结

Use 4K resolution and a 16:9 aspect ratio.
Add the watermark: 笔记来源是 learnopencode.com

真正影响效果的是先从课程里提炼结构化内容,再填进模板,而不是只把课程全文交给绘图模型。这个 Issue 按已答复关闭。

javazys avatar Aug 24 '26 16:08 javazys