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

extract-colors

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

extract-colors - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

2

package.json
{
"name": "extract-colors",
"version": "1.1.1",
"version": "1.1.2",
"description": "Extract color palettes from images",

@@ -5,0 +5,0 @@ "main": "dist/extract-colors.cjs.js",

@@ -68,3 +68,3 @@ # Extract Colors

`pixels`
**pixels**
_Total pixel number of the resized picture for calculation_

@@ -74,3 +74,3 @@ Type: `Integer`

`distance`
**distance**
_From 0 to 1 is the color distance to not have near colors (1 distance is between White and Black)_

@@ -80,3 +80,3 @@ Type: `Number`

`saturationImportance`
**saturationImportance**
_Power of the saturation weight during the process (0 is not used, 1 is equal only saturaton and not area size)_

@@ -86,3 +86,3 @@ Type: `Number`

`splitPower`
**splitPower**
_Approximation power in the first color splitting during process (from 2 to 16)_

@@ -92,3 +92,3 @@ Type: `Integer`

`colorValidator`
**colorValidator**
_Enable only some colors_

@@ -98,3 +98,3 @@ Type: `Function`

`crossOrigin`
**crossOrigin**
_Only for browser, can be 'Anonymous' to avoid CORS_

@@ -101,0 +101,0 @@ Type: `String`

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