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