Thanks to visit codestin.com
Credit goes to github.com

Skip to content

j-ncel/PixelHue

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Buy Me a Coffee

PixelHue Color Palette Generator 🎨

PixelHue is a simple Streamlit web app that extracts a color palette from any uploaded image using K-Means clustering.
It helps designers, developers, and anyone interested in color to quickly generate a set of colors from their images.

Features

  • Upload images in various formats (JPG, PNG, JPEG, BMP, GIF, WEBP).
  • Extract a customizable number of colors.
  • Visualize the palette as color swatches with hex codes.
  • Uses K-Means clustering for accurate color extraction.

Demo

PixelHue Demo Screenshot

Getting Started

Try it here: PixelHue

Installation

  1. Clone the repository:

    git clone https://github.com/j-ncel/PixelHue.git
    cd pixel-hue
  2. Install dependencies:

    pip install requirements.txt

    or

    pip install streamlit pillow scikit-learn numpy

Running the App

streamlit run main.py

Open the provided local URL in your browser to use PixelHue.

Usage

  1. Click Browse files or drag a picture to select an image file.
  2. View the extracted palette and copy the hex codes as needed.
  3. Adjust the "Number of Colors" if you want to set how many colors you want in your palette.

Project Structure

pixel-hue/
├── main.py
├── palette_extractor.py
├── koala.png
├── requirements.txt
├── README.md
  • main.py — Streamlit app UI and logic.
  • palette_extractor.py — Color extraction logic.
  • koala.png — Default image

Linked Project

Pixel Hue on Playstore. The idea was remade to Android Flutter app. You can try it here:

Get it on Google Play

Credits

About

Streamlit web-app that extracts color palette from any uploaded image.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages