fix aspect ratio
This commit is contained in:
parent
0ea766a5a6
commit
63fb5ffdd5
1 changed files with 1 additions and 1 deletions
|
@ -556,7 +556,7 @@ async function saveImage(width, height, lines, dest) {
|
||||||
resolve(image);
|
resolve(image);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
await image.resize(Math.round(width2 * 2 / 1.2), height * 2);
|
await image.resize(Math.round(width2 * 4 / 1.2), height * 2);
|
||||||
await image.writeAsync(dest);
|
await image.writeAsync(dest);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue