当前位置: 首页 > Skill >

Create PPT with Nano Banana Pro

Create PPT with Nano Banana Pro

1.0.0 2026.11.17 浏览:235
获取Skill文件查看使用说明
作者:林景许可证:
本文目录展开

ppt-with-nano-banana

Create whiteboard hand-drawn style presentations using Nano Banana Pro for image generation and PptxGenJS for PPT creation.

Overview

This skill combines:

  • Nano Banana Pro - Generate whiteboard hand-drawn style images for each slide
  • PptxGenJS - Create professional PPT with images as full-slide backgrounds

Design Principles

1. Whiteboard Hand-Drawn Style

  • Every slide uses a whiteboard-style background image
  • Hand-drawn marker lines with slight sketchy appearance
  • Clean white background, professional presentation style

2. Chinese Content First

  • All content in Chinese as primary language
  • English as notes in parentheses, e.g., "智能体(Agent)"
  • Clear, concise, presentation-ready text

3. Strategic Color Usage

Use colors purposefully to highlight key points, not for decoration:

Color Usage Example
🔴 Red Critical issues, important concepts, warnings "上下文丢失", "存储层"
🟢 Green Normal flow, correct practices, success "记忆管理层", working state
🔵 Blue Technical components, architecture elements "应用层", API interfaces

4. Clean & Professional

  • Clear visual hierarchy
  • Minimalist design with plenty of white space
  • Suitable for professional presentations

Workflow

User Request
    ↓
Generate Images (nano-banana-pro)
    - Create whiteboard-style image for each slide
    - Use strategic colors (red/green/blue) for emphasis
    - Chinese content, clean professional style
    ↓
Create PPT (pptxgenjs)
    - Set up 16:9 layout
    - Add each image as full-slide background
    - Save final presentation
    ↓
Deliver PPT to User

Image Generation Prompt Template

Whiteboard hand-drawn style [content description] on clean white background.
[Specific elements with strategic color accents].
Hand-drawn black marker lines with slight sketchy appearance.
All text in Chinese with English notes in parentheses where appropriate.
Professional whiteboard presentation style, minimalist design, plenty of white space.

Example Prompts

Slide 1 - Title:

Whiteboard hand-drawn style title slide on clean white background.
Large hand-written Chinese title: '智能体(Agent)长期记忆技术架构'.
Subtitle: '让AI拥有持续学习和记忆的能力'.
Red circle accent highlighting the word '记忆' (memory), blue underline beneath '智能体'.
Clean black marker lines, professional whiteboard style.

Slide 2 - Problem Statement:

Whiteboard hand-drawn style diagram on clean white background, all content in Chinese.
Title: '为什么需要长期记忆?'.
Three hand-drawn boxes: Left box with red accent - '上下文丢失(Context Loss)' with broken chain icon and note '每次对话重新开始'.
Middle box with green accent - '知识孤岛(Knowledge Isolation)' with island icons and note '信息无法关联'.
Right box with blue accent - '缺乏个性化(No Personalization)' with person icon and note '无法定制服务'.
Hand-drawn arrows connecting the concepts. Professional whiteboard style.

PPT Creation Code Template

const PptxGenJS = require('pptxgenjs');
const path = require('path');

async function createWhiteboardPPT() {
    const pptx = new PptxGenJS();
    pptx.layout = 'LAYOUT_16x9';
    pptx.author = 'AI Assistant';
    pptx.title = 'Your Title Here';
    pptx.subject = 'Your Subject Here';

    const imgDir = '/path/to/your/images';

    // Slide 1
    const slide1 = pptx.addSlide();
    slide1.addImage({
        path: path.join(imgDir, 'slide1-image.png'),
        x: 0, y: 0, w: 10, h: 5.625
    });

    // Slide 2
    const slide2 = pptx.addSlide();
    slide2.addImage({
        path: path.join(imgDir, 'slide2-image.png'),
        x: 0, y: 0, w: 10, h: 5.625
    });

    // Add more slides as needed...

    // Save PPT
    const outputPath = '/path/to/output/Your-PPT-Name.pptx';
    await pptx.writeFile({ fileName: outputPath });
    console.log('✅ Whiteboard style PPT created successfully!');
    console.log('📁 File path: ' + outputPath);
}

createWhiteboardPPT().catch(err => {
    console.error('❌ Error creating PPT:', err);
    process.exit(1);
});

Dependencies

# Install required packages
npm install pptxgenjs

# For nano-banana-pro (if using locally)
# Ensure uv and nano-banana-pro skill are configured

Best Practices

  1. Image Quality: Use 2K resolution for crisp whiteboard images
  2. Color Strategy: Plan which elements need color emphasis before generating images
  3. Text Clarity: Ensure Chinese characters are clear and readable in generated images
  4. Consistency: Maintain consistent visual style across all slides
  5. File Organization: Keep generated images organized by project/date

Example Output Structure

project-folder/
├── ppt_images/
│   ├── slide1-title.png
│   ├── slide2-problem.png
│   ├── slide3-architecture.png
│   └── ...
├── create_ppt.js
└── output.pptx

Troubleshooting

Issue: Generated images don't match expected whiteboard style Solution: Refine prompt to emphasize "hand-drawn", "marker sketch", "whiteboard presentation style"

Issue: Chinese text not clear in generated images Solution: Specify "clear Chinese characters" and use higher resolution (2K or 4K)

Issue: Colors not prominent enough Solution: Specify color usage explicitly: "red accent circle", "green checkmark", "blue underline"

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,031
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,029
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,017
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,014
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,011
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,011
Skill 文件
  • SKILL.md
    • ppt-with-nano-banana
    • Overview
    • Design Principles
      • 1. Whiteboard Hand-Drawn Style
      • 2. Chinese Content First
      • 3. Strategic Color Usage
      • 4. Clean & Professional
    • Workflow
    • Image Generation Prompt Template
      • Example Prompts
    • PPT Creation Code Template
    • Dependencies
    • Best Practices
    • Example Output Structure
    • Troubleshooting
  • 项目或源文件

相关 Skill

更多
Ppt Ocr Ppt Ocr OCR for PowerPoint (.ppt, .pptx) presentations with scanned or image-embedded slides. Uses MinerU to extract text from image-based presentation content. Feat...
ppt-turn-web-generator ppt-turn-web-generator 从操作流程、截图、视频、链接、参考图片和分步文档生成可重用的分页HTML教程指南。适用于...
PPT 智能生成器 PPT 智能生成器 当用户要把文章、提纲、数据、图片或一个主题做成 PPT、演示文稿、汇报、培训课件、知识讲解或产品发布会时使用。首次运行会从 CNB 下载经过 SHA-256 校验的固定引擎,之后全部在本地生成可编辑 HTML,并可导出 PPTX 与 PDF。
ppt-generate ppt-generate The intelligent PPT generation tool is provided by Baidu. It is a tool that intelligently generates PPTS based on the themes or questions given by users. Users can choose PPT themes, templates, or even customize their own templates. It also provides image or resource files (such as pdf,word,txt, etc.). The download address for the final generated PPT file is provided
PPT 中文工具专业版 PPT 中文工具专业版 <h2>PPT 中文工具专业版</h2>