1
0
mirror of https://github.com/upscayl/upscayl.git synced 2024-12-18 18:35:58 +01:00
upscayl/main/utils.js

14 lines
524 B
JavaScript
Raw Normal View History

2022-11-11 21:41:28 +01:00
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const child_process_1 = require("child_process");
const binaries_1 = require("./binaries");
function upscaylImage(inputFile, outFile, modelsPath, model) {
// UPSCALE
let upscayl = (0, child_process_1.spawn)((0, binaries_1.execPath)("realesrgan"), ["-i", inputFile, "-o", outFile, "-s", "4", "-m", modelsPath, "-n", model], {
cwd: undefined,
detached: false,
});
return upscayl;
}
module.exports = { upscaylImage };