diff --git a/src/routes/UploadRoute.ts b/src/routes/UploadRoute.ts index ff0911f..0354075 100644 --- a/src/routes/UploadRoute.ts +++ b/src/routes/UploadRoute.ts @@ -204,7 +204,7 @@ export class UploadRoute extends Route { const post = await Post.findByPk(postId); if (post.authorId === request.session.userId) { if (is.image(postMedia.mimetype)) { - fileName = await this.uploadManager.processAndStoreImage(postMedia.data, 1080, 720, "contain"); + fileName = await this.uploadManager.processAndStoreImage(postMedia.data, 1080, 720, "inside"); } else if (is.video(postMedia.mimetype)) { fileName = await this.uploadManager.processAndStoreVideo(postMedia.data, 1080); } else {