image-convert
Advanced tools
Comparing version 0.1.310 to 0.1.311
@@ -17,3 +17,9 @@ // Copyright 2016 Arshpreet Wadehra | ||
} | ||
return new File([u8arr], new Date().getTime()+"."+output_format); | ||
let file_name = new Date().getTime() + "."+output_format; | ||
var file = new File({ | ||
name: file_name, // required | ||
type: "image/"+output_format, // optional | ||
buffer: dataurl; | ||
}); | ||
return file; | ||
} | ||
@@ -20,0 +26,0 @@ module.exports = { |
{ | ||
"name": "image-convert", | ||
"version": "0.1.310", | ||
"version": "0.1.311", | ||
"description": "convert image to different format like gif2jpg jpg2png also manage the quality & size", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
4177
49