Token导航 LogoToken导航TokenDH.com
效率权限需确认clawhub未标认证来源可访问clear审计通过

icon-generator图标生成器

Agent Skill

icon-generator 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

9,102

周安装

387

GitHub Stars

公开资料未说明

下载量

3,189
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:icon-generator(图标生成器)
来源仓库:https://github.com/tobewin/icon-generator
安装命令:
openclaw skills install icon-generator
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install icon-generator

简介

icon-generator 用于生成应用程序图标、网站 favicon 和品牌徽标。

  • 支持 iOS、Android 和 Web 多平台尺寸适配,确保显示一致性。
  • 适合设计师和开发者快速产出符合规范的视觉资产。
  • 输出前应核对尺寸规格和背景透明要求,避免适配错误。
  • 商用图标建议检查版权声明,优先使用开源或授权字体/图形。

SKILL.md

name
icon-generator
description
Professional icon and logo generator for apps and websites. Use when user needs to create app icons, favicons, logos, or brand marks. Supports iOS, Android, web standards. Generates high-quality icons with multiple sizes. 图标生成、Logo制作、App图标。
version
1.0.0
license
MIT-0
metadata
{"openclaw": {"emoji": "🎨", "requires": {"bins": ["python3"], "env": []}}}
dependencies
pip install pillow

Icon Generator

Professional icon and logo generator for apps, websites, and branding.

Features

  • 📱 App Icons: iOS and Android standards
  • 🌐 Web Icons: Favicon, OG images
  • 🎨 Logo Design: Brand marks, wordmarks
  • 📐 Multi-Size: Auto-export all required sizes
  • 🎯 Customizable: Colors, shapes, styles

Supported Formats

iOS App Icons

SizeScaleUsage
1024×10241xApp Store
180×1803xiPhone
120×1202xiPhone
167×1672xiPad Pro
152×1522xiPad
80×802xiPad Spotlight
58×582xiPhone Settings
40×402xiPhone Notification

Android App Icons

SizeUsage
512×512Play Store
192×192xxxhdpi
144×144xxhdpi
96×96xhdpi
72×72hdpi
48×48mdpi

Web Icons

SizeUsage
512×512PWA icon
192×192PWA icon
180×180Apple touch
32×32Favicon
16×16Favicon

Trigger Conditions

  • "Create app icon" / "生成App图标"
  • "Make favicon" / "制作网站图标"
  • "Generate logo" / "生成Logo"
  • "icon-generator"

Icon Styles

1. Flat Icon

  • Clean, minimal design
  • Single color or gradient
  • No shadows or effects
  • Best for: Modern apps

2. Material Icon

  • Google Material style
  • Bold shapes
  • Limited color palette
  • Best for: Android apps

3. iOS Style

  • Rounded square
  • Subtle gradients
  • Apple aesthetic
  • Best for: iOS apps

4. 3D Icon

  • Depth and shadows
  • Realistic look
  • Eye-catching
  • Best for: Games, entertainment

5. Line Icon

  • Outline only
  • Minimal, clean
  • Elegant
  • Best for: Productivity apps

Python Code

from PIL import Image, ImageDraw, ImageFont
import os
import math

class IconGenerator:
    def __init__(self):
        self.ios_sizes = [
            ('AppStore', 1024),
            ('iPhone_3x', 180),
            ('iPhone_2x', 120),
            ('iPadPro', 167),
            ('iPad', 152),
            ('iPadSpotlight', 80),
            ('iPhoneSettings', 58),
            ('iPhoneNotification', 40),
        ]
        
        self.android_sizes = [
            ('PlayStore', 512),
            ('xxxhdpi', 192),
            ('xxhdpi', 144),
            ('xhdpi', 96),
            ('hdpi', 72),
            ('mdpi', 48),
        ]
        
        self.web_sizes = [
            ('PWA_512', 512),
            ('PWA_192', 192),
            ('AppleTouch', 180),
            ('Favicon_32', 32),
            ('Favicon_16', 16),
        ]
    
    def _load_font(self, size):
        paths = [
            '/System/Library/Fonts/PingFang.ttc',
            '/usr/share/fonts/truetype/noto/NotoSansCJK-Regular.ttc',
        ]
        for p in paths:
            if os.path.exists(p):
                try:
                    return ImageFont.truetype(p, size)
                except:
                    continue
        return ImageFont.load_default()
    
    def create_flat_icon(self, symbol, bg_color, symbol_color, size=(512, 512)):
        """Flat design icon"""
        img = Image.new('RGBA', size, (*bg_color, 255))
        draw = ImageDraw.Draw(img)
        
        font = self._load_font(size[0] // 3)
        bbox = draw.textbbox((0, 0), symbol, font=font)
        w, h = bbox[2] - bbox[0], bbox[3] - bbox[1]
        x, y = (size[0] - w) // 2, (size[1] - h) // 2
        
        draw.text((x, y), symbol, font=font, fill=(*symbol_color, 255))
        return img
    
    def create_material_icon(self, symbol, color, size=(512, 512)):
        """Material Design icon"""
        img = Image.new('RGBA', size, (0, 0, 0, 0))
        draw = ImageDraw.Draw(img)
        
        # Circular background
        margin = size[0] // 10
        draw.ellipse([(margin, margin), (size[0]-margin, size[1]-margin)], 
                     fill=(*color, 255))
        
        # Icon
        font = self._load_font(size[0] // 3)
        bbox = draw.textbbox((0, 0), symbol, font=font)
        w, h = bbox[2] - bbox[0], bbox[3] - bbox[1]
        x, y = (size[0] - w) // 2, (size[1] - h) // 2
        draw.text((x, y), symbol, font=font, fill=(255, 255, 255, 255))
        
        return img
    
    def create_ios_icon(self, symbol, bg_color, symbol_color, size=(1024, 1024)):
        """iOS style icon with rounded corners"""
        import numpy as np
        
        # Create base image
        img = Image.new('RGBA', size, (*bg_color, 255))
        draw = ImageDraw.Draw(img)
        
        # Add subtle gradient
        for y in range(size[1]):
            ratio = y / size[1]
            r = int(bg_color[0] * (1 - ratio * 0.2))
            g = int(bg_color[1] * (1 - ratio * 0.2))
            b = int(bg_color[2] * (1 - ratio * 0.2))
            draw.line([(0, y), (size[0], y)], fill=(r, g, b, 255))
        
        # Add symbol
        font = self._load_font(size[0] // 3)
        bbox = draw.textbbox((0, 0), symbol, font=font)
        w, h = bbox[2] - bbox[0], bbox[3] - bbox[1]
        x, y = (size[0] - w) // 2, (size[1] - h) // 2
        draw.text((x, y), symbol, font=font, fill=(*symbol_color, 255))
        
        return img
    
    def create_line_icon(self, path_points, color, size=(512, 512)):
        """Line/outline style icon"""
        img = Image.new('RGBA', size, (255, 255, 255, 255))
        draw = ImageDraw.Draw(img)
        
        if len(path_points) > 1:
            draw.line(path_points, fill=(*color, 255), width=max(2, size[0] // 50))
        
        return img
    
    def apply_rounded_corners(self, img, radius=None):
        """Apply iOS-style rounded corners"""
        if radius is None:
            radius = img.size[0] // 5
        
        mask = Image.new('L', img.size, 0)
        draw = ImageDraw.Draw(mask)
        draw.rounded_rectangle([(0, 0), img.size], radius=radius, fill=255)
        
        result = Image.new('RGBA', img.size, (0, 0, 0, 0))
        result.paste(img, mask=mask)
        return result
    
    def export_all_sizes(self, img, output_dir, platform='all'):
        """Export icon in all required sizes"""
        os.makedirs(output_dir, exist_ok=True)
        
        sizes = []
        if platform in ['ios', 'all']:
            sizes.extend(self.ios_sizes)
        if platform in ['android', 'all']:
            sizes.extend(self.android_sizes)
        if platform in ['web', 'all']:
            sizes.extend(self.web_sizes)
        
        exported = []
        for name, size in sizes:
            resized = img.resize((size, size), Image.LANCZOS)
            path = os.path.join(output_dir, f'icon_{name}_{size}x{size}.png')
            resized.save(path)
            exported.append(path)
        
        return exported

# Example
gen = IconGenerator()

# Create iOS icon
icon = gen.create_ios_icon('A', (30, 60, 114), (255, 255, 255))

# Apply rounded corners
icon = gen.apply_rounded_corners(icon)

# Export all sizes
gen.export_all_sizes(icon, 'output/')

Usage Examples

User: "Create an app icon for my note-taking app"
Agent: Generate icon with notebook symbol

User: "Make a favicon for my website"
Agent: Generate 32×32 and 16×16 icons

User: "Generate all icon sizes for iOS and Android"
Agent: Export 20+ sizes for both platforms

Notes

  • All icons generated locally with Pillow
  • Auto-export all required sizes
  • Cross-platform compatible
  • Supports Chinese and English symbols

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

78.01%
按下载量换算2,488

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

权限需确认

当前来源未能明确判断权限范围,默认进入异常复核队列。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills