Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

png-to-matrix

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

png-to-matrix - npm Package Compare versions

Comparing version 1.0.2 to 1.0.5

8

index.js

@@ -21,6 +21,6 @@ const getPixels = require("get-pixels")

}
if (rgbaIndex == 0) currentObj.r = pixels.data[k]
if (rgbaIndex == 1) currentObj.g = pixels.data[k]
if (rgbaIndex == 2) currentObj.b = pixels.data[k]
if (rgbaIndex == 3) currentObj.a = pixels.data[k]
if (rgbaIndex == 0) currentObj.a = pixels.data[k]
if (rgbaIndex == 1) currentObj.r = pixels.data[k]
if (rgbaIndex == 2) currentObj.g = pixels.data[k]
if (rgbaIndex == 3) currentObj.b = pixels.data[k]
})

@@ -27,0 +27,0 @@ callback(matrix)

{
"name": "png-to-matrix",
"version": "1.0.2",
"version": "1.0.5",
"description": "An image to 2D RGBA matrix conversion module",

@@ -5,0 +5,0 @@ "main": "index.js",

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