bds

@barbuza/bdsm

Background Dominant Stripe Manipulator

Showing:

Popularity

Downloads/wk

8

GitHub Stars

1

Maintenance

Last Commit

5yrs ago

Contributors

2

Package

Dependencies

3

Size (min+gzip)

23.0KB

License

MIT

Type Definitions

Built-In

Tree-Shakeable

No?

Categories

Readme

BDSM.js extracts dominant colors from the top and the bottom areas of an image.

Quickstart

npm install bdsm@0.2.2 --save
var bdsm = require('bdsm');

bdsm.findDominantColors('image.jpg').then(function (colors) {
  console.log(colors);
});

will give you something like

{ top: { r: 151, g: 189, b: 212 },
  bottom: { r: 188, g: 163, b: 147 } }

Dependencies

BDSM.js uses ImageMagick and runs on Node.
It is tested with IM 6.8.7 but other versions may work as well.

More Examples

 

 

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100