dayvonjersen / vibrant Goto Github PK
View Code? Open in Web Editor NEWExtract prominent colors from images. Go port of the Android awesome Palette class aka Vibrant.js.
License: Apache License 2.0
Extract prominent colors from images. Go port of the Android awesome Palette class aka Vibrant.js.
License: Apache License 2.0
Is it possible to feed an image to the vibrant cli tool from a unix pipe?
ie.
~$ curl https://i.imgur.com/nzcJuDx.png | vibrant -json
usage: vibrant [options] file
options:
-compress
Strip whitespace from output.
-css
Output results in CSS.
-json
Output results in JSON.
-lowercase
Use lowercase only for all output. (default true)
-rgb
Output RGB instead of HTML hex, e.g. #ffffff.
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
16 30609 16 4910 0 0 18374 0 0:00:01 --:--:-- 0:00:01 18389
curl: (23) Failed writing body (1945 != 2759)
this does not work ^
I can achieve what I want though by saving to a temp file
eg.
~$ curl https://i.imgur.com/nzcJuDx.png -o temp && vibrant -json temp
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 30609 100 30609 0 0 100k 0 --:--:-- --:--:-- --:--:-- 100k
{
"darkvibrant": {
"color": "#004285",
"text": "#ffffff"
},
"lightvibrant": {
"color": "#7bbdff",
"text": "#000000"
},
"vibrant": {
"color": "#3f9fff",
"text": "#ffffff"
}
}
We want to try this OSS in the production. A license file would encourage the use with peace of legal mind.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.