Generate customizable icons from Iconify with easy export to PNG, SVG, WebP
Project description
icon-gen-ai
Generate customizable icons from Iconify, direct URLs, or local files with easy export to PNG, SVG, WebP formats.
Features
- AI-assisted icon search and generation
- Simple and intuitive CLI and Python API
- Access 200,000+ icons from Iconify
- Unlimited icons from direct URLs or local files
- Customize colors, sizes, and backgrounds and adjust border radius
- Gradient color option for icons and backgrounds
- Export to SVG, PNG, or WEBP format
Installation
pip install icon-gen-ai
(Optional) AI features:
pip install icon-gen-ai[ai]
Quick Start
from icon_gen import IconGenerator
# Initialize generator
generator = IconGenerator(output_dir="output")
# Generate multiple icons at once
ai_icons = {
'openai': 'simple-icons:openai',
'gemini': 'simple-icons:googlegemini',
'mistral': 'simple-icons:mistralai',
'claude': {
'url': 'https://upload.wikimedia.org/wikipedia/commons/b/b0/Claude_AI_symbol.svg'
}
}
generator.generate_batch(ai_icons, color='white', size=256)
Example Output
Finding Icons
Browse available icons at Iconify
Icon naming format: collection:icon-name
simple-icons:openai- Company logosmdi:github- Material Design Iconsfa6-solid:scale-balanced- Font Awesome iconsheroicons:scale- HeroIcons
Examples
Check out the examples/ directory for more use cases:
generate_ai_icons.py- Generate AI model icons (Claude, OpenAI, Gemini)generate_ai_icons_on_bg.py- Generate icons on different backgroundsgenerate_judge_icon.py- Generate legal/law iconsai_simple_usage.py- Use natural language to search and generate iconsai_icon_search.py- Use natural language to search and generate icons with custom style
Development
# Clone the repository
git clone https://github.com/yauheniya-ai/icon-gen-ai.git
cd icon-gen-ai
# Install all dependencies (including dev tools)
uv sync
uv sync --extra ai
# Run tests
uv run pytest --cov=src --cov-report=term-missing
License
MIT License - see LICENSE file for details
Author
Yauheniya Varabyova (yauheniya.ai@gmail.com)
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file icon_gen_ai-0.2.3.tar.gz.
File metadata
- Download URL: icon_gen_ai-0.2.3.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4a834ed7f9e56d78c635883719b0f47f99b9b3ea714c134483959f7a3e57a403
|
|
| MD5 |
53ddc34414d6d5860ae7435b7eed701b
|
|
| BLAKE2b-256 |
9e7f1f6ecacebb45a59e516a8b20d4bedce1786b544a3a35d1586b8d9dffb190
|
File details
Details for the file icon_gen_ai-0.2.3-py3-none-any.whl.
File metadata
- Download URL: icon_gen_ai-0.2.3-py3-none-any.whl
- Upload date:
- Size: 23.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bf6c0d99ad2c4ebc8825b1ec1608bd757d6b822f0a7fb910683d78c860590f6
|
|
| MD5 |
1ed8c9525d39efd3a24e0c6fd2132c65
|
|
| BLAKE2b-256 |
8a1841a95f5975e9f22730cf91877f8c4ac9d63423d4937c0f8048cc3769a045
|