murat 93f5cd0ba4 optimization: streamline image loading and remove pixel vector
- Read file once and decode from memory using stbi_load_from_memory
- Add guard for files smaller than 8 bytes
- Remove std::vector<Pixel> and accumulate histogram in downsample loop
2026-08-08 04:37:38 +03:00
2026-01-31 18:24:50 +03:00

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

S
Description
No description provided
Readme
203 KiB
Languages
C 98.2%
C++ 1.8%