diff --git a/lib/png/generate_png.js b/lib/png/generate_png.js index 99eccc61e..1b9f7d703 100644 --- a/lib/png/generate_png.js +++ b/lib/png/generate_png.js @@ -1,5 +1,4 @@ async (imgString) => { - const exportMaxWidth = 4000; const tempImg = new Image(); const loadImage = () => { return new Promise((resolve, reject) => { @@ -12,8 +11,8 @@ async (imgString) => { }; const img = await loadImage(); const canvas = document.createElement("canvas"); - canvas.width = Math.min(img.width, exportMaxWidth); - canvas.height = (canvas.width * img.height) / img.width; + canvas.width = img.width; + canvas.height = img.height; const ctx = canvas.getContext("2d"); if (!ctx) { return "";