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