'chess-image-generator library export bad quality png

Im using chess-image-generator library to draw chess pieces but the resulting quality is just too bad

var ChessImageGenerator = require("chess-image-generator");
var imageGenerator = new ChessImageGenerator({
  size: 720,
  light: "rgb(200, 200, 200)",
  dark: "#333333",
  style: "merida",
});
imageGenerator
.loadFEN(
"r2qk2r/p1p5/bpnbp2p/1N1p1p2/P2P1p1N/2PQ2P1/1P2PPBP/R4RK1 b kq - 1 13"
)
.then((r) => imageGenerator.generatePNG("image.png"));

enter image description here



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source