https://github.com/ealenn/picolors
Microservice/CLI to get prominent colors from an image
https://github.com/ealenn/picolors
cli colors docker helm picture server
Last synced: about 1 month ago
JSON representation
Microservice/CLI to get prominent colors from an image
- Host: GitHub
- URL: https://github.com/ealenn/picolors
- Owner: Ealenn
- Created: 2019-12-14T17:51:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T03:00:54.000Z (over 2 years ago)
- Last Synced: 2025-01-25T00:20:31.403Z (3 months ago)
- Topics: cli, colors, docker, helm, picture, server
- Language: JavaScript
- Homepage: https://hub.docker.com/r/ealen/picolors
- Size: 148 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Picolors
[](https://github.com/Ealenn/Picolors/issues)  
> Extract prominent colors from an image
Based on [node-vibrant](https://github.com/akfish/node-vibrant)
## Microservice
```sh
➜ docker run --rm -p 8080:80 ealen/picolors web
HTTP Server Started
``````sh
➜ curl localhost:8080/?s=https://picsum.photos/id/274/200/300
{ color: '#444cc0', textColor: '#fff' }
```## CLI
```sh
# 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' }
```