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; }