removed express backend & added new ipc

This commit is contained in:
2023-06-04 17:35:10 +02:00
parent b28d2dd68e
commit 8f7f6d71b7
11 changed files with 121 additions and 7275 deletions

View File

@@ -17,7 +17,7 @@ class UpscalingHandler {
this.os = process.platform
}
upscale( options, io ) {
upscale( options, win ) {
// required options: engine, algorithm, scale, sharpening, InputFile & OutputFile
// Options is an object!
@@ -46,7 +46,7 @@ class UpscalingHandler {
child.stdout.on( 'data', data => {
console.log( '' + data );
io.emit( 'progress', '\n' + data );
win.send( 'progress', '\n' + data );
} );
child.stderr.on( 'data', ( data ) => {