This commit is contained in:
2026-09-10 00:07:22 +02:00
parent 43ff87ed62
commit 73ffe02bbb
12 changed files with 1327 additions and 275 deletions
+2 -1
View File
@@ -124,7 +124,8 @@ export const handleRethumbUpload = async (req, res, itemId) => {
}
// Generate the thumbnail
const tDir = item.active ? cfg.paths.t : path.join(cfg.paths.pending, 't');
let tDir = item.active ? cfg.paths.t : path.join(cfg.paths.pending, 't');
try { tDir = await fs.realpath(tDir); } catch (_) {}
const finalPath = path.join(tDir, `${item.id}.webp`);
const thumbSpec = '512x512';