palette_tool
Extract an optimal color palette from an image, fetch a Lospec palette, or convert palettes to .gpl, .hex, or .json for pixel-art workflows.
Instructions
Extracts an optimal palette from an image (via hybrid_bgm_oklab or oklab_median_cut), fetches a Lospec palette ('lospec:'), or converts any palette to .gpl, .hex, or .json.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | PixelForge Palette | |
| palette | Yes | Color count (if input_image given), built-in id, 'lospec:<slug>', or palette file path. | |
| input_image | No | Optional image to extract palette from. | |
| output_file | No | Optional output palette file (.gpl, .hex, or .json). | |
| extract_mode | No | hybrid_bgm_oklab |