8000 GitHub - leodr/icons: Generate beautiful app icons using Flux AI image generation
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
/ icons Public

Generate beautiful app icons using Flux AI image generation

License

Notifications You must be signed in to change notification settings

leodr/icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Icons

Generate beautiful app icons using Flux AI image generation



Icons is a Python tool that generates app icons using Flux 1.1 Pro on Replicate. It creates icons from text prompts or processes existing images, outputting them as SVG and PNG files.


Installation

Prerequisites

Python Dependencies

Install the required Python packages:

pip install pyvips replicate colorama python-dotenv tqdm

Configuration

  1. Get your Replicate API token from replicate.com
  2. Create a .env file in the project root:
    REPLICATE_API_TOKEN=your_token_here
    
    Alternatively, set it as an environment variable.

Usage

Generating a New Icon

  1. Run the script:

    python generate.py
  2. Enter your prompt when asked

  3. The script will generate:

    • icons/{timestamp}.svg - SVG version
    • icons/{timestamp}.png - PNG version

    Note: Generated images are temporarily stored in generations/{timestamp}.jpg

Processing an Existing Image

To process an existing image:

python generate.py --previous path/to/your/image.jpg

This will convert your image to SVG and PNG formats in the icons directory.


Output

The script creates two directories:

  • generations/ - Stores intermediate generated images
  • icons/ - Stores the final icons in SVG and PNG formats

Each file is named with a timestamp for unique identification.

About

Generate beautiful app icons using Flux AI image generation

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0