Add upscale feat
All checks were successful
ci / Image build (push) Successful in 2m28s
ci / Deployment (push) Successful in 27s

This commit is contained in:
Joris Bertomeu
2025-08-26 17:30:47 +02:00
parent 6faebd723d
commit dc5c541bc4
3 changed files with 838 additions and 199 deletions

1017
index.js

File diff suppressed because it is too large Load Diff

View File

@@ -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",

View File

@@ -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`);
} }