1
0
mirror of https://github.com/upscayl/upscayl.git synced 2025-02-22 13:29:59 +01:00
This commit is contained in:
Nayam Amarshe 2023-11-27 07:51:17 +05:30
parent c77e0f6c92
commit d108a75612
2 changed files with 23 additions and 14 deletions

View File

@ -92,7 +92,9 @@ const imageUpscayl = async (event, payload: ImageUpscaylPayload) => {
) )
); );
} else { } else {
logit("✅ Upscayl Variables: ", { logit(
"✅ Upscayl Variables: ",
JSON.stringify({
model, model,
gpuId, gpuId,
saveImageAs, saveImageAs,
@ -104,7 +106,8 @@ const imageUpscayl = async (event, payload: ImageUpscaylPayload) => {
desiredScale, desiredScale,
outFile, outFile,
compression, compression,
}); })
);
const upscayl = spawnUpscayl( const upscayl = spawnUpscayl(
"realesrgan", "realesrgan",
getSingleImageArguments( getSingleImageArguments(

View File

@ -62,7 +62,13 @@ export function setChildProcesses(value: {
kill: () => boolean; kill: () => boolean;
}): void { }): void {
childProcesses.push(value); childProcesses.push(value);
logit("👶 Updating Child Processes: ", childProcesses); logit(
"👶 Updating Child Processes: ",
JSON.stringify({
binary: childProcesses[0].process.spawnfile,
args: childProcesses[0].process.spawnargs,
})
);
} }
export function setNoImageProcessing(value: boolean): void { export function setNoImageProcessing(value: boolean): void {