From b1c57ffffa3d0fdd3b049dad52b3ea1017335d42 Mon Sep 17 00:00:00 2001 From: sianida26 Date: Thu, 16 May 2024 00:35:30 +0700 Subject: [PATCH] Remove unused options --- apps/backend/src/routes/dev/route.ts | 1 - apps/backend/src/utils/compressImage.ts | 4 ---- 2 files changed, 5 deletions(-) diff --git a/apps/backend/src/routes/dev/route.ts b/apps/backend/src/routes/dev/route.ts index 485a30e..65e8bf8 100644 --- a/apps/backend/src/routes/dev/route.ts +++ b/apps/backend/src/routes/dev/route.ts @@ -25,7 +25,6 @@ const devRoutes = new Hono() const buffer = await compressImage({ inputFile: file, - outputPath: "./images", targetSize: 500 * 1024, }); diff --git a/apps/backend/src/utils/compressImage.ts b/apps/backend/src/utils/compressImage.ts index f15412b..f139f17 100644 --- a/apps/backend/src/utils/compressImage.ts +++ b/apps/backend/src/utils/compressImage.ts @@ -3,16 +3,12 @@ import sharp from "sharp"; /** * Options for compressing an image * @property inputFile - The input file to compress - * @property outputPath - The output path for the compressed image * @property targetSize - The target size for the compressed image (optional) - * @property filename - The filename for the compressed image (optional) * @property minQuality - The minimum quality for the compressed image (optional) */ interface CompressImageOptions { inputFile: File; - outputPath: string; targetSize?: number; - filename?: string; minQuality?: number; }