Add upscale feat
This commit is contained in:
@@ -14,6 +14,8 @@
|
|||||||
"cheerio": "^1.1.2",
|
"cheerio": "^1.1.2",
|
||||||
"cors": "^2.8.5",
|
"cors": "^2.8.5",
|
||||||
"express": "^5.1.0",
|
"express": "^5.1.0",
|
||||||
|
"ffprobe": "^1.1.2",
|
||||||
|
"ffprobe-static": "^3.1.0",
|
||||||
"fs": "^0.0.1-security",
|
"fs": "^0.0.1-security",
|
||||||
"mpd-parser": "^1.3.1",
|
"mpd-parser": "^1.3.1",
|
||||||
"path": "^0.12.7",
|
"path": "^0.12.7",
|
||||||
|
|||||||
@@ -126,6 +126,10 @@ const getLocalBinFileInfo = (binType) => {
|
|||||||
stat: fs.existsSync(path) ? fs.statSync(path) : null,
|
stat: fs.existsSync(path) ? fs.statSync(path) : null,
|
||||||
version: getBinVersion(`${BIN_PATH}/.${binType}.version`)
|
version: getBinVersion(`${BIN_PATH}/.${binType}.version`)
|
||||||
}
|
}
|
||||||
|
} else if (binType === 'realesrgan') {
|
||||||
|
return {
|
||||||
|
path: `${BIN_PATH}/realesrgan_macos/realesrgan-ncnn-vulkan`
|
||||||
|
};
|
||||||
} else {
|
} else {
|
||||||
throw new Error(`Bad binType "${binType}" provided`);
|
throw new Error(`Bad binType "${binType}" provided`);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user