get-image-data
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -17,4 +17,9 @@ var fs = require('fs') | ||
callback(null, shared(canvas)(image)) | ||
try { | ||
callback(null, shared(canvas)(image)) | ||
} | ||
catch (e) { | ||
callback(e) | ||
} | ||
}) | ||
} |
{ | ||
"name": "get-image-data", | ||
"version": "2.2.1", | ||
"version": "2.2.2", | ||
"description": "A browser/server utility that extracts RGBA data from images.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -25,7 +25,7 @@ # get-image-data | ||
for (var i = 0, l = data.length, i < l; i += 4) { | ||
for (var i = 0, l = data.length; i < l; i += 4) { | ||
var red = data[i] | ||
var green = data[i + 1] | ||
var blue = data[i + 2] | ||
var alpha = data[i + 3] | ||
var alpha = data[i + 3] | ||
} | ||
@@ -32,0 +32,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1105596
123