New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@barbuza/bdsm

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@barbuza/bdsm

Extracts dominant colors from bottom and top parts of an image.

  • 0.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
increased by40%
Maintainers
1
Weekly downloads
 
Created
Source

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

   

Keywords

FAQs

Package last updated on 30 Jan 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc