/Picolors

Microservice/CLI to get prominent colors from an image

Primary LanguageJavaScript

Picolors

GitHub issues GitHub Workflow Status David

Extract prominent colors from an image

Based on node-vibrant

Microservice

➜ docker run --rm -p 8080:80 ealen/picolors web
HTTP Server Started
➜ curl localhost:8080/?s=https://picsum.photos/id/274/200/300
{ color: '#444cc0', textColor: '#fff' }

CLI

# URL
➜ docker run --rm ealen/picolors https://picsum.photos/id/274/200/300
{ color: '#444cc0', textColor: '#fff' }

# File
➜ docker run --rm --read-only -v $PWD:/home picolors:latest /home/test.jpg
{ color: '#4294eb', textColor: '#fff' }