This commit is contained in:
Azgaar 2019-11-13 00:32:47 +03:00
parent e21aed5188
commit bd1200742e
2 changed files with 6 additions and 6 deletions

View file

@ -1753,14 +1753,14 @@
</td> </td>
</tr> </tr>
<tr data-tip="Define relative size of a saved png/jpeg image. Saving big images is slow and may cause a browser crash!"> <tr data-tip="Define scale of a saved png/jpeg image (e.g. 5x). Saving big images is slow and may cause a browser crash!">
<td></td> <td></td>
<td>PNG/JPEG size</td> <td>PNG/JPEG scale</td>
<td> <td>
<input id="pngResolutionInput" data-stored="pngResolution" type="range" min=1 max=8 value=5> <input id="pngResolutionInput" data-stored="pngResolution" type="range" min=1 max=8 value=1>
</td> </td>
<td> <td>
<input id="pngResolutionOutput" data-stored="pngResolution" type="number" min=1 max=8 value=5> <input id="pngResolutionOutput" data-stored="pngResolution" type="number" min=1 max=8 value=1>
</td> </td>
</tr> </tr>

View file

@ -11,7 +11,7 @@ async function saveSVG() {
document.body.appendChild(link); document.body.appendChild(link);
link.click(); link.click();
tip(`${link.download} is saved. Open "Downloads" screen (crtl + J) to check`, true, "success", 5000); tip(`${link.download} is saved. Open "Downloads" screen (crtl + J) to check. You can set image scale in options`, true, "success", 5000);
console.timeEnd("saveSVG"); console.timeEnd("saveSVG");
} }
@ -38,7 +38,7 @@ async function savePNG() {
window.setTimeout(function() { window.setTimeout(function() {
canvas.remove(); canvas.remove();
window.URL.revokeObjectURL(link.href); window.URL.revokeObjectURL(link.href);
tip(`${link.download} is saved. Open "Downloads" screen (crtl + J) to check`, true, "success", 5000); tip(`${link.download} is saved. Open "Downloads" screen (crtl + J) to check. You can set image scale in options`, true, "success", 5000);
}, 1000); }, 1000);
}); });
} }