get-pixels
Advanced tools
Comparing version 3.2.1 to 3.2.2
@@ -12,2 +12,3 @@ 'use strict' | ||
var img = new Image() | ||
img.crossOrigin = "Anonymous" | ||
img.onload = function() { | ||
@@ -68,4 +69,7 @@ var canvas = document.createElement('canvas') | ||
var xhr = new XMLHttpRequest() | ||
xhr.open('GET', url, true) | ||
xhr.responseType = 'arraybuffer' | ||
xhr.overrideMimeType('application/binary') | ||
if(xhr.overrideMimeType){ | ||
xhr.overrideMimeType('application/binary') | ||
} | ||
xhr.onerror = function(err) { | ||
@@ -82,3 +86,2 @@ cb(err) | ||
} | ||
xhr.open('GET', url, true) | ||
xhr.send() | ||
@@ -85,0 +88,0 @@ } |
{ | ||
"name": "get-pixels", | ||
"version": "3.2.1", | ||
"version": "3.2.2", | ||
"description": "Reads the pixels of an image as an ndarray", | ||
@@ -5,0 +5,0 @@ "main": "node-pixels.js", |
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
11314
300