π Upscayl - #1 Free and Open Source AI Image Upscaler for Linux, MacOS and Windows.
TypeScript aielectronesrgangigapixelgigapixel-imagesimageimage-upscalingtopazupscaleupscalerimageupscayl
import { spawn } from "child_process";
import { execPath } from "./get-resource-paths";
export const spawnUpscayl = (
command: string[],
logit: (...args: any) => void,
) => {
logit(
"π’ Upscayl Command: ",
command.filter((arg) => arg !== ""),
);
const spawnedProcess = spawn(
execPath,
command.filter((arg) => arg !== ""),
{
cwd: undefined,
detached: false,
},
);
return {
process: spawnedProcess,
kill: () => spawnedProcess.kill(),
};
};