diff --git a/backend/middlewares/ThumbnailGeneratorMWs.ts b/backend/middlewares/ThumbnailGeneratorMWs.ts index e3619a4c..c11d381c 100644 --- a/backend/middlewares/ThumbnailGeneratorMWs.ts +++ b/backend/middlewares/ThumbnailGeneratorMWs.ts @@ -122,7 +122,6 @@ export class ThumbnailGeneratorMWs { //check if thumbnail already exist if (fs.existsSync(thPath) === true) { return next(); - //return setTimeout(()=>{next();},2000); } //create thumbnail folder if not exist @@ -130,7 +129,6 @@ export class ThumbnailGeneratorMWs { fs.mkdirSync(ProjectPath.ThumbnailFolder); } - console.log("generating thumbnail", imagePath, size); //run on other thread pool.send({imagePath: imagePath, size: size, thPath: thPath}) .on('done', (out) => { diff --git a/frontend/app/gallery/grid/thumnailLoader.service.ts b/frontend/app/gallery/grid/thumnailLoader.service.ts index 04936aec..25ce4d21 100644 --- a/frontend/app/gallery/grid/thumnailLoader.service.ts +++ b/frontend/app/gallery/grid/thumnailLoader.service.ts @@ -127,11 +127,8 @@ export class ThumbnailLoaderService { task.taskEntities.forEach(te => te.listener.onStartedLoading()); task.inProgress = true; - console.log("loading", task.gridPhoto.getThumbnailPath()); let curImg = new Image(); curImg.onload = () => { - console.log("loaded", task.gridPhoto.getThumbnailPath()); - task.gridPhoto.thumbnailLoaded(); this.galleryChacheService.photoUpdated(task.gridPhoto.photo); task.taskEntities.forEach((te: ThumbnailTaskEntity) => te.listener.onLoad()); @@ -142,7 +139,6 @@ export class ThumbnailLoaderService { }; curImg.onerror = (error) => { - console.log("error", task.gridPhoto.getThumbnailPath()); task.taskEntities.forEach((te: ThumbnailTaskEntity) => te.listener.onError(error)); this.taskReady(task);