Agent skill
color-palette-extractor
Extract dominant colors from images, generate color palettes, and export as CSS, JSON, or ASE with K-means clustering.
Install this agent skill to your Project
npx add-skill https://github.com/dkyazzentwatwa/chatgpt-skills/tree/main/color-palette-extractor
SKILL.md
Color Palette Extractor
Extract dominant colors from images and generate color palettes with multiple export formats.
Features
- Dominant Colors: Extract N most dominant colors using K-means
- Color Schemes: Generate complementary, analogous, triadic schemes
- Multiple Formats: Export as CSS, JSON, ASE (Adobe Swatch), ACO (Photoshop)
- Color Analysis: RGB, HEX, HSL, HSV values
- Visualization: Palette swatches, color distribution charts
- Batch Processing: Extract palettes from multiple images
- Similarity Matching: Find similar colors across palettes
Quick Start
from color_palette_extractor import ColorPaletteExtractor
extractor = ColorPaletteExtractor()
# Extract colors
extractor.load('image.jpg')
palette = extractor.extract_colors(n_colors=5)
# Export
extractor.export_css('palette.css')
extractor.export_json('palette.json')
extractor.save_swatch('swatch.png')
CLI Usage
# Extract 5 colors
python color_palette_extractor.py --input image.jpg --colors 5 --output palette.json
# With CSS export
python color_palette_extractor.py --input image.jpg --colors 8 --css palette.css --swatch swatch.png
# Batch mode
python color_palette_extractor.py --batch images/ --colors 5 --output palettes/
Dependencies
- pillow>=10.0.0
- scikit-learn>=1.3.0
- numpy>=1.24.0
- matplotlib>=3.7.0
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
video-to-gif
Convert video clips to optimized GIFs with speed control, cropping, text overlays, and file size optimization. Create perfect GIFs for social media, documentation, and presentations.
audio-analyzer
Comprehensive audio analysis with waveform visualization, spectrogram, BPM detection, key detection, frequency analysis, and loudness metrics.
topic-modeler
Extract topics from text collections using LDA (Latent Dirichlet Allocation) with keyword extraction and topic visualization.
language-detector
Detect language of text with confidence scores, support for 50+ languages, and batch text classification.
image-filter-lab
Apply artistic filters to images including vintage, sepia, B&W, blur, sharpen, vignette, and color adjustments. Create custom filter presets.
qr-code-generator
Generate QR codes with URLs and UTM tracking. Exports PNG/SVG with captions. Use for single codes, batch generation, or marketing campaigns with tracking parameters.
Didn't find tool you were looking for?