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