Support External Images via Canvas

This commit is contained in:
Chinmay Pandhare
2017-07-26 23:16:32 +05:30
parent 21334ff5d8
commit d90c61f85d
7 changed files with 84 additions and 26 deletions

View File

@@ -43,7 +43,7 @@ module.exports = function PixelManipulation(image, options) {
// but node modules and their documentation are essentially arcane on this point
var chunks = [];
var totalLength = 0;
var r = savePixels(pixels, options.format);
var r = savePixels(pixels, options.format, {quality: 100});
r.on('data', function(chunk){
totalLength += chunk.length;