介绍
# Creative Illustration Factory
为书籍、社论内容、儿童故事和创意项目生成专业插画。
## 设置
- 需要环境变量:`OPENAI_API_KEY`
## 快速开始
生成一张简单插画:
```bash python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py \ --subject "a cozy cottage in an enchanted forest" ```
按特定风格生成:
```bash python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py \ --subject "a robot learning to paint" \ --style "watercolor" \ --mood "whimsical" ```
生成故事序列:
```bash python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py \ --subject "Alice discovers a tiny door" \ --subject "Alice shrinks down" \ --subject "Alice enters Wonderland" \ --style "whimsical illustration" \ --mood "magical" ```
## 插画类型
### 书籍插画 - `chapter-opener` - 全页章节开篇场景 - `character-intro` - 角色介绍肖像 - `landscape-scene` - 宽屏环境定场镜头 - `action-moment` - 动态动作或关键时刻 - `emotional-scene` - 情感或戏剧性场景 - `cover-art` - 书籍封面插画风格
### 社论 / 杂志艺术 - `conceptual-art` - 抽象概念插画 - `info-graphic` - 信息图示风格 - `portrait-editorial` - 社论肖像 - `spot-illustration` - 小型装饰插画 - `full-page-spread` - 杂志全版跨页
### 儿童图书艺术 - `picture-book` - 经典绘本插画 - `whimsical` - 俏皮且富有想象力的风格 - `educational` - 教育类书籍插画 - `bedtime-story` - 柔和、宁静的睡前故事艺术 - `adventure-map` - 冒险地图或藏宝图
### 概念艺术 - `environment-concept` - 环境概念艺术 - `character-concept` - 角色设计概念 - `prop-concept` - 物品或道具设计 - `storyboard` - 故事板分镜风格 - `mood-board` - 情绪板美学
## 风格
### 传统媒介 - `watercolor` - 边缘柔和的水彩画 - `oil-painting` - 质感丰富的油画 - `charcoal-sketch` - 炭笔素描风格 - `ink-wash` - 水墨 / 水墨画风格 - `pastel` - 柔和的粉笔画 - `colored-pencil` - 彩色铅笔画 - `gouache` - 不透明水彩画 - `acrylic` - 丙烯画风格 - `lino-cut` - 胶版画印刷风格 - `woodcut` - 木版画美学
### 数字风格 - `digital-painting` - 数字绘画 - `vector-illustration` - 干净的矢量艺术 - `flat-design` - 扁平化设计美学 - `isometric` - 等轴透视 - `pixel-art` - 复古像素艺术 - `concept-art` - 游戏/电影概念艺术风格 - `cel-shaded` - 赛璐珞着色动画风格 - `low-poly` - 低多边形 3D 美学
### 书籍与印刷风格 - `picture-book` - 经典绘本 - `storybook-illustration` - 复古故事书艺术 - `editorial-illustration` - 杂志社论 - `newspaper-engraving` - 报纸雕刻风格 - `poster-art` - 复古海报设计 - `woodblock-print` - 日本浮世绘 - `screen-print` - 丝网印刷美学
## 情绪
- `whimsical` - 俏皮且富有想象力 - `magical` - 魔幻且迷人 - `mysterious` - 神秘且引人入胜 - `peaceful` - 平静且安详 - `dramatic` - 戏剧性且强烈 - `nostalgic` - 温暖且怀旧 - `gloomy` - 阴暗且充满氛围 - `vibrant` - 明亮且充满活力 - `romantic` - 柔和且浪漫 - `quirky` - 古怪且离奇
## 参数
- `--subject` - 插画主题/描述(批量生成时可重复使用) - `--type` - 插画类型(默认:illustration) - `--style` - 艺术风格(默认:watercolor) - `--mood` - 情绪/氛围(默认:peaceful) - `--palette` - 色彩板建议 - `--composition` - 构图指导(例如 "wide shot"、"close-up") - `--count` - 每个主题的变体数量(默认:1) - `--out-dir` - 输出目录(默认:~/Projects/tmp/creative-illustration-*) - `--size` - 图片尺寸:1024x1024、1792x1024、1024x1792(默认:1024x1024) - `--quality` - high/standard(默认:high) - `--model` - OpenAI 图片模型(默认:gpt-image-1.5) - `--api-key` - OpenAI API 密钥(或使用 OPENAI_API_KEY 环境变量)
## 高级示例
儿童书页面:
```bash python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py \ --subject "a curious rabbit with a pocket watch" \ --type "picture-book" \ --style "watercolor" \ --mood "whimsical" \ --palette "pastel" ```
社论概念艺术:
```bash python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py \ --subject "AI and humanity working together" \ --type "conceptual-art" \ --style "vector-illustration" \ --mood "optimistic" \ --composition "symbolic" ```
故事序列:
```bash python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py \ --subject "Hero finds an ancient map" \ --subject "Hero deciphers mysterious symbols" \ --subject "Hero discovers a hidden passage" \ --subject "Hero enters the forgotten temple" \ --style "storybook-illustration" \ --mood "mysterious" \ --palette "earth tones" ```
完全自定义提示词:
```bash python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py \ --prompt "A magical treehouse library nestled among ancient redwoods, spiral staircase winding up the trunk, lanterns hanging from branches, books floating in mid-air, warm golden light streaming through leaves, detailed watercolor illustration style, whimsical and enchanting" ```
## 色彩板
- `pastel` - 柔和的粉彩 - `earth tones` - 自然的棕色、绿色、金色 - `vibrant` - 明亮饱和的色彩 - `muted` - 低饱和度、微妙的色彩 - `monochrome` - 单色变化 - `jewel tones` - 丰富的红宝石色、祖母绿、蓝宝石色 - `autumn` - 橙色、红色、黄色、棕色 - `winter` - 蓝色、白色、银色、紫色 - `tropical` - 明亮的绿色、青色、粉色 - `vintage` - 温暖的褐色、褪色调
## 构图
- `wide shot` - 宽屏定场场景 - `close-up` - 亲密特写 - `panoramic` - 全景风景 - `rule-of-thirds` - 平衡的三分法则 - `centered` - 居中主体 - `diagonal` - 动态对角线构图 - `triangular` - 三角形构图 - `circular` - 圆形 / 螺旋形构图 - `symmetrical` - 完全对称 - `asymmetrical` - 非对称平衡
## 输出
- `*.png` - 插画图片 - `prompts.json` - 所有使用的提示词 - `index.html` - 插画画廊
## 项目模板
### 儿童图书 (4-6 张图片)
```bash python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py \ --subject "Girl finds a magical seed" \ --subject "Seed grows into a glowing plant" \ --subject "Plant reveals a tiny fairy" \ --subject "Fairy shows girl a secret garden" \ --subject "Girl shares garden with friends" \ --type "picture-book" \ --style "watercolor" \ --mood "whimsical" ```
### 杂志社论 (1-2 张图片)
```bash python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py \ --subject "The future of sustainable cities" \ --type "conceptual-art" \ --style "vector-illustration" \ --mood "optimistic" \ --count 2 ```
### 奇幻故事章节开篇 (1 张图片)
```bash python3 ~/Projects/agent-scripts/skills/creative-illustration/scripts/illustrate.py \ --subject "The dragon's treasure hoard under ancient runes" \ --type "chapter-opener" \ --style "oil-painting" \ --mood "dramatic" \ --palette "jewel tones" ```