mirror of
https://github.com/upscayl/upscayl.git
synced 2024-11-12 01:40:53 +01:00
Fix #646
This commit is contained in:
parent
54fc57f633
commit
fed423f73f
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user