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

image-filter-grayscale

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

image-filter-grayscale - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

8

index.js

@@ -0,1 +1,7 @@

function copyImageData(ctx, src) {
var dst = ctx.createImageData(src.width, src.height);
dst.data.set(src.data);
return dst;
}
function transform(canvas, context, imageData) {

@@ -34,3 +40,5 @@ var data = imageData.data;

options.data = copyImageData(context, options.data);
return transform(canvas, context, options.data);
}

2

package.json
{
"name": "image-filter-grayscale",
"version": "0.0.2",
"version": "0.0.3",
"description": "Small library to apply a grayscale transformation to a image",

@@ -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