← 返回
未分类 中文

ppt-icon-generator

Generate or search PNG transparent icons for PowerPoint presentations. Use when: (1) Need icons for PPT slides, (2) Want custom icons from text prompts, (3)...
为 PowerPoint 演示文稿生成或搜索透明 PNG 图标。使用场景:(1) 需要 PPT 幻灯片图标,(2) 想通过文字提示生成自定义图标,(3) ...
timyljob2011-sudo timyljob2011-sudo 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 556
下载
💾 190
安装
1
版本
#latest

概述

PPT Icon Generator

Generate professional PNG transparent icons for your PowerPoint presentations.

Features

  • 🔍 Search Icons: Search 200,000+ icons from Iconify API
  • 🎨 Generate Icons: Create custom icons from text prompts using AI/Copilot
  • 🖼️ SVG to PNG: Convert SVG icons to transparent PNG
  • 📐 Custom Size: Generate icons in any size (default: 512x512)
  • 🎯 Multiple Styles: Flat, line, filled, outline, duotone

Quick Start

Search and Download Icon

# Search for "chart" icons
python3 scripts/icon_search.py --query "chart" --limit 5

# Download first result as PNG
python3 scripts/icon_search.py --query "chart" --download --output ~/workspace/chart_icon.png

Generate Custom Icon

# Generate a "rocket" icon with gradient style
python3 scripts/icon_generate.py --prompt "rocket launching with fire trail" --style gradient --output rocket.png

# Generate line-style icon
python3 scripts/icon_generate.py --prompt "data analytics dashboard" --style line --size 256

Usage Methods

Method 1: Search Existing Icons (Recommended)

Search from 200,000+ open source icons:

// Search icons
{
  "tool": "exec",
  "command": "python3 /root/.openclaw/skills/ppt-icon-generator/scripts/icon_search.py --query 'analytics' --limit 10"
}

// Download specific icon
{
  "tool": "exec",
  "command": "python3 /root/.openclaw/skills/ppt-icon-generator/scripts/icon_search.py --query 'chart-line' --download --output /root/.openclaw/workspace/chart.png"
}

Method 2: Generate with AI/Canvas

Use browser automation to generate icons via AI tools:

// Use Copilot/ChatGPT to generate icon
{
  "tool": "browser",
  "action": "open",
  "targetUrl": "https://copilot.microsoft.com"
}

// Prompt example:
// "Generate a minimalist icon of [DESCRIPTION], transparent background, 
//  suitable for PowerPoint, flat design style, single color"

Method 3: Create with Python (Pillow)

Generate simple geometric icons:

# Create basic shapes with transparency
python3 scripts/icon_generate.py --shape circle --color "#FF6B6B" --output icon.png

# Create text-based icon
python3 scripts/icon_generate.py --text "AI" --bg-gradient "#667eea,#764ba2" --output ai_icon.png

Icon Search Examples

Common PPT Icon Categories

# Business & Analytics
python3 scripts/icon_search.py --query "chart-bar" --download
python3 scripts/icon_search.py --query "trending-up" --download
python3 scripts/icon_search.py --query "pie-chart" --download

# Technology
python3 scripts/icon_search.py --query "cpu" --download
python3 scripts/icon_search.py --query "cloud" --download
python3 scripts/icon_search.py --query "database" --download

# Communication
python3 scripts/icon_search.py --query "message" --download
python3 scripts/icon_search.py --query "email" --download
python3 scripts/icon_search.py --query "share" --download

# UI Elements
python3 scripts/icon_search.py --query "check-circle" --download
python3 scripts/icon_search.py --query "alert" --download
python3 scripts/icon_search.py --query "settings" --download

Icon Generation Examples

From Text Prompt

# Generate abstract tech icon
python3 scripts/icon_generate.py \
  --prompt "neural network nodes connected" \
  --style flat \
  --color "#4ECDC4" \
  --output neural_icon.png

# Generate arrow icon
python3 scripts/icon_generate.py \
  --prompt "arrow pointing right with curved path" \
  --style line \
  --size 512 \
  --output arrow.png

Simple Geometric Icons

# Solid circle icon
python3 scripts/icon_generate.py --shape circle --color "#FF6B6B" --output red_circle.png

# Square with rounded corners
python3 scripts/icon_generate.py --shape rounded-rect --color "#4ECDC4" --output teal_box.png

# Diamond shape
python3 scripts/icon_generate.py --shape diamond --color "#FFE66D" --output yellow_diamond.png

Icon Styles for PPT

StyleUse CaseCommand
--------------------------
FlatModern, clean slides--style flat
LineMinimalist, outline--style line
FilledBold, emphasis--style filled
GradientEye-catching titles--style gradient
DuotoneProfessional reports--style duotone

Workflow: Get Icon for PPT

Step 1: Search or Describe

# Option A: Search existing icons
python3 scripts/icon_search.py --query "your-keyword" --limit 5

# Option B: Describe what you need
python3 scripts/icon_generate.py --prompt "your description" --preview

Step 2: Download/Generate

# Download selected icon
python3 scripts/icon_search.py --query "selected-icon-name" --download --output my_icon.png

# Or generate custom
python3 scripts/icon_generate.py --prompt "description" --output my_icon.png

Step 3: Verify and Use

# Check icon properties
python3 scripts/icon_verify.py --file my_icon.png

# Resize if needed
python3 scripts/icon_resize.py --input my_icon.png --size 256 --output my_icon_256.png

Step 4: Send to User

{
  "tool": "message",
  "action": "send",
  "filePath": "/root/.openclaw/workspace/my_icon.png",
  "filename": "my_ppt_icon.png"
}

API Reference

icon_search.py

python3 scripts/icon_search.py [options]

Options:
  --query TEXT        Search query (required)
  --limit N           Number of results (default: 10)
  --download          Download first result as PNG
  --output PATH       Output file path
  --style STYLE       Filter by style: flat, line, filled
  --color COLOR       Filter by color theme

icon_generate.py

python3 scripts/icon_generate.py [options]

Options:
  --prompt TEXT       Description of icon to generate
  --shape SHAPE       Basic shape: circle, square, diamond, star
  --text TEXT         Text to render as icon
  --style STYLE       Style: flat, line, gradient, duotone
  --color COLOR       Primary color (hex)
  --size N            Output size in pixels (default: 512)
  --output PATH       Output file path
  --bg-color COLOR    Background color (default: transparent)

icon_convert.py

python3 scripts/icon_convert.py [options]

Options:
  --input PATH        Input SVG file
  --output PATH       Output PNG file
  --size N            Output size (default: 512)
  --color COLOR       Override icon color

Best Practices

  1. Size: Use 512x512 for flexibility, resize in PPT
  2. Format: Always PNG with transparency
  3. Style: Match your PPT theme (flat for modern, line for minimal)
  4. Color: Use brand colors or neutral (#333, #666, #999)
  5. Consistency: Use same style throughout presentation

Common PPT Icon Needs

Use CaseRecommended Query
-----------------------------
Section headerstitle, heading, flag
Bullet pointscheck, dot, star
Process stepsarrow-right, number-1, timeline
Data chartschart, graph, analytics
Contact infoemail, phone, location
Social mediatwitter, linkedin, github

Troubleshooting

Icon not found

  • Try synonyms: "chart" → "graph" → "analytics"
  • Use broader terms: "email" instead of "gmail"

Generated icon looks wrong

  • Be more specific in prompt
  • Try different style: --style line vs --style flat
  • Adjust colors for better contrast

PNG has white background

  • Verify transparency is enabled
  • Use PNG format (not JPG)
  • Check with: python3 scripts/icon_verify.py --file icon.png

Examples

Example 1: Full Workflow

User: "I need an icon for AI analytics section in my PPT"

# Search relevant icons
python3 scripts/icon_search.py --query "ai-brain" --limit 5

# Download best match
python3 scripts/icon_search.py --query "brain-circuit" --download --output ai_icon.png

# Or generate custom
python3 scripts/icon_generate.py --prompt "AI brain with circuit patterns" --style gradient --output ai_custom.png

Example 2: Batch Generate Icons

# Create icon set
for theme in "strategy" "growth" "innovation" "team"; do
  python3 scripts/icon_generate.py --prompt "$theme concept" --output "${theme}_icon.png"
done

Example 3: Style Matching

# Generate icons matching your PPT theme color
python3 scripts/icon_generate.py --shape circle --color "#YOUR_BRAND_COLOR" --output brand_icon.png

Links & Resources

  • Iconify API: https://api.iconify.design/
  • Icon Sets: Material Design, Fluent, Heroicons, Phosphor
  • Color Picker: https://colorpicker.me/

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 20:40 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

office-efficiency

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 381 📥 144,425
office-efficiency

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 926 📥 186,795
office-efficiency

Word / DOCX

ivangdavila
创建、检查和编辑 Microsoft Word 文档及 DOCX 文件,支持样式、编号、修订记录、表格、分节符及兼容性检查等功能。
★ 457 📥 151,877