Socket
Socket
Sign inDemoInstall

image-palette

Package Overview
Dependencies
39
Maintainers
2
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 2.0.1 to 2.1.0

8

index.js

@@ -7,3 +7,3 @@ /*!

var cid = require('color-id')
var u8 = require('to-uint8')
var pxls = require('pxls')
var quantize = require('quantize')

@@ -22,3 +22,3 @@

var pixels = u8(src)
var pixels = pxls(src)
var total = pixels.length >> 2

@@ -66,3 +66,3 @@

var pixels = u8(src)
var pixels = pxls(src)
var total = pixels.length >> 2

@@ -120,3 +120,3 @@

function average (src) {
var pixels = u8(src)
var pixels = pxls(src)
var total = pixels.length >> 2

@@ -123,0 +123,0 @@

{
"name": "image-palette",
"version": "2.0.1",
"version": "2.1.0",
"description": "Get palette for any image file, no node-canvas",

@@ -35,5 +35,5 @@ "keywords": [

"color-id": "^1.1.0",
"quantize": "^1.0.2",
"to-uint8": "^1.3.1"
"pxls": "^2.0.0",
"quantize": "^1.0.2"
}
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc