f42059fc61bac41c3aaa03fc183632329889e689
- Add -q/--quiet flag to suppress terminal logs and swatches - Use stbi_failure_reason() to print detailed decode errors - Update JSON image path resolution to handle CLI flags correctly
downloaded stb_image header file from https://raw.githubusercontent.com/nothings/stb/master/stb_image.h
ccolors
Small CLI tool to extract dominant color palettes from images.
Features
- JPEG / PNG support
- Terminal color preview
- HEX output
- JSON export
- No external dependencies
Build
Linux / macOS
mkdir build
cd build
cmake ..
make
Usage
./ccolors image.jpg
Output
- Prints color swatches + hex
- Writes palette.json
Dependencies
- stb_image.h (included)
License
MIT
Languages
C
98.2%
C++
1.8%