Open rickdog opened 9 years ago
util.readFileImage (util.js) is 5 times faster on my Win/Firefox37 when I replace
line 302: def.resolve("data:image/jpeg;base64," + util.blobToBase64(this.result));
with: def.resolve('data:image/jpeg;base64,' + btoa(String.fromCharCode.apply(null, new Uint8Array(this.result))));
util.readFileImage (util.js) is 5 times faster on my Win/Firefox37 when I replace
line 302: def.resolve("data:image/jpeg;base64," + util.blobToBase64(this.result));
with: def.resolve('data:image/jpeg;base64,' + btoa(String.fromCharCode.apply(null, new Uint8Array(this.result))));