Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 18 days 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 (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-05T03:00:54.000Z (about 2 years ago)
- Last Synced: 2024-11-25T03:19:36.495Z (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
[![GitHub issues](https://img.shields.io/github/issues/Ealenn/Picolors?style=for-the-badge)](https://github.com/Ealenn/Picolors/issues) ![GitHub Workflow Status](https://img.shields.io/github/workflow/status/ealenn/picolors/Node%20CI?style=for-the-badge) ![David](https://img.shields.io/david/ealenn/picolors?style=for-the-badge)
> 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' }
```