Loading...
Loading...
Compare original and translation side by side
| Use this skill when... | Use imagemagick-conversion instead when... |
|---|---|
| Producing a brand-new image from a text prompt | Converting, resizing, or compressing an existing image |
| Generating cinematic, product, or portrait artwork | Building thumbnails or batch-processing many files |
| Mixing up to five reference images into a new render | Applying deterministic transforms (rotate, crop, format) |
| Use this skill when... | Use mermaid-diagrams or d2-diagrams instead when... |
|---|---|
| The output is a photographic or illustrative image | The output is a flowchart, sequence, or architecture diagram |
| Quality settings (1K/2K/4K) and aspect ratio matter | Diagram-as-code rendering would be more maintainable |
| 适用场景 | 应改用imagemagick-conversion的场景 |
|---|---|
| 根据文本提示生成全新图片 | 转换、调整现有图片大小或压缩现有图片 |
| 生成电影风格、产品或肖像类插画 | 生成缩略图或批量处理大量文件 |
| 将最多5张参考图融入新渲染效果 | 应用确定性变换(旋转、裁剪、格式转换) |
| 适用场景 | 应改用mermaid-diagrams或d2-diagrams的场景 |
|---|---|
| 输出为摄影或插画类图片 | 输出为流程图、序列图或架构图 |
| 需关注画质设置(1K/2K/4K)和宽高比 | 采用代码化渲染图表更易维护 |
1:12:33:23:44:34:55:49:1616:921:916:91K2K4K2K1:12:33:23:44:34:55:49:1616:921:916:91K2K4K2Kecho "API Key: ${GOOGLE_API_KEY:+SET}${GEMINI_API_KEY:+SET}"echo "API Key: ${GOOGLE_API_KEY:+SET}${GEMINI_API_KEY:+SET}"/generate-image "A beautiful mountain landscape at sunset"
/generate-image "Product photo on white background" --aspect 1:1 --resolution 4K
/generate-image "Portrait photo" --aspect 3:4
/generate-image "Cinematic scene" --aspect 21:9
/generate-image "Similar style" --reference existing_image.png/generate-image "A beautiful mountain landscape at sunset"
/generate-image "Product photo on white background" --aspect 1:1 --resolution 4K
/generate-image "Portrait photo" --aspect 3:4
/generate-image "Cinematic scene" --aspect 21:9
/generate-image "Similar style" --reference existing_image.pnguv run python .claude/scripts/nano_banana_pro.py \
"{{arg:1}}" \
--aspect {{aspect|default:"16:9"}} \
--resolution {{resolution|default:"2K"}} \
{{reference_flags}}uv run python .claude/scripts/nano_banana_pro.py "PROMPT" --aspect RATIO --resolution SIZEuv run python .claude/scripts/nano_banana_pro.py \
"{{arg:1}}" \
--aspect {{aspect|default:"16:9"}} \
--resolution {{resolution|default:"2K"}} \
{{reference_flags}}uv run python .claude/scripts/nano_banana_pro.py "PROMPT" --aspect RATIO --resolution SIZE./generated/image_YYYYMMDD_HHMMSS.png--output/generate-image "Scene" --output custom_name.png./generated/image_YYYYMMDD_HHMMSS.png--output/generate-image "Scene" --output custom_name.png| Use Case | Ratio |
|---|---|
| Square/Instagram | 1:1 |
| Portrait | 3:4, 9:16 |
| Landscape | 16:9 |
| Ultrawide | 21:9 |
| Photo | 3:2, 4:3 |
| 使用场景 | 比例 |
|---|---|
| 方形/Instagram | 1:1 |
| 竖版肖像 | 3:4, 9:16 |
| 横版风景 | 16:9 |
| 超宽屏 | 21:9 |
| 摄影常用 | 3:2, 4:3 |
| Use Case | Resolution |
|---|---|
| Preview | 1K |
| Standard | 2K |
| High quality | 4K |
| 使用场景 | 分辨率 |
|---|---|
| 预览用 | 1K |
| 标准画质 | 2K |
| 高质量 | 4K |
GOOGLE_API_KEYGEMINI_API_KEYGOOGLE_API_KEYGEMINI_API_KEY