1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-11-27 17:00:52 +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,
saveImageAs,
);
// Remove the png file (default) if the saveImageAs is not png
// fs.access(
// removeFileExtension(outFile) + ".png",
// fs.constants.F_OK,
// (err) => {
// if (!err && saveImageAs !== "png") {
// logit("🗑 Removing png file");
// fs.unlinkSync(removeFileExtension(outFile) + ".png");
// }
// }
// );
if (isAlpha && saveImageAs === "jpg") {
fs.unlinkSync(outFile + ".png");
}
mainWindow.setProgressBar(-1);
mainWindow.webContents.send(
COMMAND.UPSCAYL_DONE,