Remove unused options

This commit is contained in:
sianida26 2024-05-16 00:35:30 +07:00
parent e5454017c4
commit b1c57ffffa
2 changed files with 0 additions and 5 deletions

View File

@ -25,7 +25,6 @@ const devRoutes = new Hono<HonoEnv>()
const buffer = await compressImage({ const buffer = await compressImage({
inputFile: file, inputFile: file,
outputPath: "./images",
targetSize: 500 * 1024, targetSize: 500 * 1024,
}); });

View File

@ -3,16 +3,12 @@ import sharp from "sharp";
/** /**
* Options for compressing an image * Options for compressing an image
* @property inputFile - The input file to compress * @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 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) * @property minQuality - The minimum quality for the compressed image (optional)
*/ */
interface CompressImageOptions { interface CompressImageOptions {
inputFile: File; inputFile: File;
outputPath: string;
targetSize?: number; targetSize?: number;
filename?: string;
minQuality?: number; minQuality?: number;
} }