1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-14 18:57:41 +01:00
This commit is contained in:
Nayam Amarshe 2024-02-09 18:28:19 +05:30
parent 54fc57f633
commit fed423f73f

View File

@ -177,17 +177,9 @@ const imageUpscayl = async (event, payload: ImageUpscaylPayload) => {
desiredScale, desiredScale,
saveImageAs, saveImageAs,
); );
// Remove the png file (default) if the saveImageAs is not png if (isAlpha && saveImageAs === "jpg") {
// fs.access( fs.unlinkSync(outFile + ".png");
// removeFileExtension(outFile) + ".png", }
// fs.constants.F_OK,
// (err) => {
// if (!err && saveImageAs !== "png") {
// logit("🗑 Removing png file");
// fs.unlinkSync(removeFileExtension(outFile) + ".png");
// }
// }
// );
mainWindow.setProgressBar(-1); mainWindow.setProgressBar(-1);
mainWindow.webContents.send( mainWindow.webContents.send(
COMMAND.UPSCAYL_DONE, COMMAND.UPSCAYL_DONE,