image-convert
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -10,3 +10,2 @@ // Copyright 2016 Arshpreet Wadehra | ||
let quality = 100,output_format="jpg",size=undefined; | ||
let callback = arguments[arguments.length-1]; | ||
let max_allowed_parameters = 5; | ||
@@ -33,9 +32,9 @@ let min_allowed_parameters = 2; | ||
buffer = image(body).size(size).encode(output_format,{quality:quality}); | ||
callback(null,buffer); | ||
arguments[arguments.length-1](null,buffer); | ||
}); | ||
} | ||
catch(e){ | ||
callback(e.message,null); | ||
arguments[arguments.length-1](e.message,null); | ||
} | ||
} | ||
} |
{ | ||
"name": "image-convert", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "convert image and return static jpg and can resize from URL", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
3429
37