fix aspect ratio

This commit is contained in:
Brooke Vibber 2024-08-30 19:00:54 -07:00
parent 0ea766a5a6
commit 63fb5ffdd5

View file

@ -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);
} }