image-convert
Advanced tools
Comparing version 0.1.307 to 0.1.308
@@ -8,3 +8,3 @@ // Copyright 2016 Arshpreet Wadehra | ||
function dataURLtoFile(dataurl, filename) { | ||
function dataURLtoFile(dataurl) { | ||
var bstr = atob(dataurl), n = bstr.length, u8arr = new Uint8Array(n); | ||
@@ -14,3 +14,3 @@ while(n--){ | ||
} | ||
return new File([u8arr], filename); | ||
return [u8arr]; | ||
} | ||
@@ -34,3 +34,3 @@ module.exports = { | ||
buffer = image(body).size(size).encode(output_format,{quality:quality}); | ||
callback(null,dataURLtoFile(buffer,new Date()+"."+output_format)); | ||
callback(null,buffer,dataURLtoFile(buffer)); | ||
}); | ||
@@ -37,0 +37,0 @@ } |
{ | ||
"name": "image-convert", | ||
"version": "0.1.307", | ||
"version": "0.1.308", | ||
"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
3775