image-convert
Advanced tools
Comparing version 0.1.306 to 0.1.307
@@ -9,8 +9,7 @@ // Copyright 2016 Arshpreet Wadehra | ||
function dataURLtoFile(dataurl, filename) { | ||
var arr = dataurl.split(','), mime = arr[0].match(/:(.*?);/)[1], | ||
bstr = atob(arr[1]), n = bstr.length, u8arr = new Uint8Array(n); | ||
var bstr = atob(dataurl), n = bstr.length, u8arr = new Uint8Array(n); | ||
while(n--){ | ||
u8arr[n] = bstr.charCodeAt(n); | ||
} | ||
return new File([u8arr], filename, {type:mime}); | ||
return new File([u8arr], filename); | ||
} | ||
@@ -17,0 +16,0 @@ module.exports = { |
{ | ||
"name": "image-convert", | ||
"version": "0.1.306", | ||
"version": "0.1.307", | ||
"description": "convert image to different format like gif2jpg jpg2png also manage the quality & size", | ||
@@ -5,0 +5,0 @@ "main": "index.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
3827
38