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
CODEBLOCK0
Generate Custom Icon
CODEBLOCK1
Usage Methods
Method 1: Search Existing Icons (Recommended)
Search from 200,000+ open source icons:
CODEBLOCK2
Method 2: Generate with AI/Canvas
Use browser automation to generate icons via AI tools:
CODEBLOCK3
Method 3: Create with Python (Pillow)
Generate simple geometric icons:
CODEBLOCK4
Icon Search Examples
Common PPT Icon Categories
CODEBLOCK5
Icon Generation Examples
From Text Prompt
CODEBLOCK6
Simple Geometric Icons
CODEBLOCK7
Icon Styles for PPT
| Style | Use Case | Command |
|---|
| Flat | Modern, clean slides | INLINECODE0 |
| Line |
Minimalist, outline |
--style line |
| Filled | Bold, emphasis |
--style filled |
| Gradient | Eye-catching titles |
--style gradient |
| Duotone | Professional reports |
--style duotone |
Workflow: Get Icon for PPT
Step 1: Search or Describe
CODEBLOCK8
Step 2: Download/Generate
CODEBLOCK9
Step 3: Verify and Use
CODEBLOCK10
Step 4: Send to User
CODEBLOCK11
API Reference
icon_search.py
CODEBLOCK12
icon_generate.py
CODEBLOCK13
icon_convert.py
CODEBLOCK14
Best Practices
- 1. Size: Use 512x512 for flexibility, resize in PPT
- Format: Always PNG with transparency
- Style: Match your PPT theme (flat for modern, line for minimal)
- Color: Use brand colors or neutral (#333, #666, #999)
- Consistency: Use same style throughout presentation
Common PPT Icon Needs
| Use Case | Recommended Query |
|---|
| Section headers | INLINECODE5 , heading, INLINECODE7 |
| Bullet points |
check,
dot,
star |
| Process steps |
arrow-right,
number-1,
timeline |
| Data charts |
chart,
graph,
analytics |
| Contact info |
email,
phone,
location |
| Social media |
twitter,
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 INLINECODE24 - Adjust colors for better contrast
PNG has white background
- - Verify transparency is enabled
- Use PNG format (not JPG)
- Check with: INLINECODE25
Examples
Example 1: Full Workflow
User: "I need an icon for AI analytics section in my PPT"
CODEBLOCK15
Example 2: Batch Generate Icons
CODEBLOCK16
Example 3: Style Matching
CODEBLOCK17
Links & Resources
- - Iconify API: https://api.iconify.design/
- Icon Sets: Material Design, Fluent, Heroicons, Phosphor
- Color Picker: https://colorpicker.me/
PPT图标生成器
为您的PowerPoint演示文稿生成专业的PNG透明图标。
功能特性
- - 🔍 搜索图标:从Iconify API搜索超过20万个图标
- 🎨 生成图标:使用AI/助手根据文本提示创建自定义图标
- 🖼️ SVG转PNG:将SVG图标转换为透明PNG
- 📐 自定义尺寸:生成任意尺寸的图标(默认:512x512)
- 🎯 多种风格:扁平、线条、填充、轮廓、双色调
快速开始
搜索并下载图标
bash
搜索chart图标
python3 scripts/icon_search.py --query chart --limit 5
下载第一个结果为PNG
python3 scripts/icon
search.py --query chart --download --output ~/workspace/charticon.png
生成自定义图标
bash
生成渐变风格的火箭图标
python3 scripts/icon_generate.py --prompt rocket launching with fire trail --style gradient --output rocket.png
生成线条风格图标
python3 scripts/icon_generate.py --prompt data analytics dashboard --style line --size 256
使用方法
方法1:搜索现有图标(推荐)
从超过20万个开源图标中搜索:
javascript
// 搜索图标
{
tool: exec,
command: python3 /root/.openclaw/skills/ppt-icon-generator/scripts/icon_search.py --query analytics --limit 10
}
// 下载特定图标
{
tool: exec,
command: python3 /root/.openclaw/skills/ppt-icon-generator/scripts/icon_search.py --query chart-line --download --output /root/.openclaw/workspace/chart.png
}
方法2:使用AI/画布生成
通过浏览器自动化使用AI工具生成图标:
javascript
// 使用Copilot/ChatGPT生成图标
{
tool: browser,
action: open,
targetUrl: https://copilot.microsoft.com
}
// 提示示例:
// Generate a minimalist icon of [DESCRIPTION], transparent background,
// suitable for PowerPoint, flat design style, single color
方法3:使用Python(Pillow)创建
生成简单的几何图标:
bash
创建带透明度的基本形状
python3 scripts/icon_generate.py --shape circle --color #FF6B6B --output icon.png
创建基于文字的图标
python3 scripts/icon
generate.py --text AI --bg-gradient #667eea,#764ba2 --output aiicon.png
图标搜索示例
常见PPT图标分类
bash
商业与分析
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
技术
python3 scripts/icon_search.py --query cpu --download
python3 scripts/icon_search.py --query cloud --download
python3 scripts/icon_search.py --query database --download
通信
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元素
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
图标生成示例
从文本提示生成
bash
生成抽象科技图标
python3 scripts/icon_generate.py \
--prompt neural network nodes connected \
--style flat \
--color #4ECDC4 \
--output neural_icon.png
生成箭头图标
python3 scripts/icon_generate.py \
--prompt arrow pointing right with curved path \
--style line \
--size 512 \
--output arrow.png
简单几何图标
bash
实心圆形图标
python3 scripts/icon
generate.py --shape circle --color #FF6B6B --output redcircle.png
圆角方形
python3 scripts/icon
generate.py --shape rounded-rect --color #4ECDC4 --output tealbox.png
菱形
python3 scripts/icon
generate.py --shape diamond --color #FFE66D --output yellowdiamond.png
PPT图标风格
| 风格 | 使用场景 | 命令 |
|---|
| 扁平 | 现代、简洁的幻灯片 | --style flat |
| 线条 |
极简、轮廓 | --style line |
| 填充 | 粗体、强调 | --style filled |
| 渐变 | 引人注目的标题 | --style gradient |
| 双色调 | 专业报告 | --style duotone |
工作流程:为PPT获取图标
步骤1:搜索或描述
bash
选项A:搜索现有图标
python3 scripts/icon_search.py --query your-keyword --limit 5
选项B:描述您需要的图标
python3 scripts/icon_generate.py --prompt your description --preview
步骤2:下载/生成
bash
下载选中的图标
python3 scripts/icon
search.py --query selected-icon-name --download --output myicon.png
或生成自定义图标
python3 scripts/icon
generate.py --prompt description --output myicon.png
步骤3:验证并使用
bash
检查图标属性
python3 scripts/icon
verify.py --file myicon.png
如果需要调整大小
python3 scripts/icon
resize.py --input myicon.png --size 256 --output my
icon256.png
步骤4:发送给用户
javascript
{
tool: message,
action: send,
filePath: /root/.openclaw/workspace/my_icon.png,
filename: myppticon.png
}
API参考
icon_search.py
bash
python3 scripts/icon_search.py [options]
选项:
--query TEXT 搜索查询(必需)
--limit N 结果数量(默认:10)
--download 下载第一个结果为PNG
--output PATH 输出文件路径
--style STYLE 按风格筛选:flat, line, filled
--color COLOR 按颜色主题筛选
icon_generate.py
bash
python3 scripts/icon_generate.py [options]
选项:
--prompt TEXT 要生成的图标描述
--shape SHAPE 基本形状:circle, square, diamond, star
--text TEXT 要渲染为图标的文字
--style STYLE 风格:flat, line, gradient, duotone
--color COLOR 主色(十六进制)
--size N 输出尺寸(像素,默认:512)
--output PATH 输出文件路径
--bg-color COLOR 背景颜色(默认:透明)
icon_convert.py
bash
python3 scripts/icon_convert.py [options]
选项:
--input PATH 输入SVG文件
--output PATH 输出PNG文件
--size N 输出尺寸(默认:512)
--color COLOR 覆盖图标颜色
最佳实践
- 1. 尺寸:使用512x512以获得灵活性,在PPT中调整大小
- 格式:始终使用带透明度的PNG
- 风格:匹配您的PPT主题(现代用扁平,极简用线条)
- 颜色:使用品牌色或中性色(#333, #666, #999)
- 一致性:整个演示文稿使用相同风格
常见PPT图标需求
| 使用场景 | 推荐查询 |
|---|
| 章节标题 | title, heading, flag |
| 项目符号 |
check, dot, star |
| 流程步骤 | arrow-right, number-1, timeline |
| 数据图表 | chart, graph, analytics |
| 联系信息 | email, phone, location |
| 社交媒体 | twitter, linkedin, github |
故障排除
图标未找到
- - 尝试同义词:chart → graph → analytics
- 使用更宽泛的术语:用email代替gmail
生成的图标看起来不对