image_extract_colors
Extract dominant colors from images or video frames using K-means clustering, returning hex codes, RGB values, CSS color names, and coverage percentages for palette analysis.
Instructions
Extract dominant colors from an image or video frame.
Uses K-means clustering to find the most prominent colors. Returns hex codes, RGB values, CSS color names, and percentage coverage.
Args: image_path: Absolute path to the image or video file. If video, extracts a representative frame. n_colors: Number of dominant colors to extract (1-20, default 5).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| n_colors | No | ||
| overwrite | No | Explicitly allow replacing existing media. Existing non-media files are protected. | |
| image_path | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||