diff --git a/backend/middlewares/ThumbnailGeneratorMWs.ts b/backend/middlewares/ThumbnailGeneratorMWs.ts index df17060b..e963a242 100644 --- a/backend/middlewares/ThumbnailGeneratorMWs.ts +++ b/backend/middlewares/ThumbnailGeneratorMWs.ts @@ -1,3 +1,5 @@ +/// + import * as path from 'path'; import * as Jimp from 'jimp'; @@ -6,6 +8,8 @@ import * as fs from 'fs'; import {NextFunction, Request, Response} from "express"; import {Error, ErrorCodes} from "../../common/entities/Error"; + + export class ThumbnailGeneratorMWs { public static generateThumbnail(req:Request, res:Response, next:NextFunction){ diff --git a/backend/middlewares/jimp.d.ts b/backend/middlewares/jimp.d.ts new file mode 100644 index 00000000..b7941dd1 --- /dev/null +++ b/backend/middlewares/jimp.d.ts @@ -0,0 +1,4 @@ +declare module "jimp"{ + function read(filaname); + var AUTO:any; +} \ No newline at end of file