This commit is contained in:
2025-03-18 12:21:21 +02:00
parent eaa46eeda8
commit 1f6ee77c24
17 changed files with 407 additions and 275 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ class GameObjectsManager{
*/
this.addThumb = async function(object, thumbSrc){
let ext = path.extname(thumbSrc).toLowerCase();
console.log(object, thumbSrc, ext);
//console.log(object, thumbSrc, ext);
let dest = `${config.fs.repo}/thumb/${object.id}.webp`;
if (['.jpg', '.png', '.webp'].includes(ext) || !ext){
await sharp(thumbSrc).resize({height: 250}).toFile(dest);