1
0
mirror of https://github.com/Tygs/0bin.git synced 2023-08-10 21:13:00 +03:00

Augment compression quality for images

This commit is contained in:
ksamuel 2020-08-15 12:08:04 +02:00
parent c4e3718c01
commit 0e936db771

View File

@ -255,7 +255,7 @@ var app = new Vue({
var ctx = canvas.getContext('2d');
ctx.drawImage(img, 0, 0, width, height);
resolve(canvas.toDataURL('image/jpeg', 0.5));
resolve(canvas.toDataURL('image/jpeg', 0.7));
}
img.onerror = function (err) {
reject(err);