onara
This commit is contained in:
@@ -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';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user