Remove unused options
This commit is contained in:
parent
e5454017c4
commit
b1c57ffffa
|
|
@ -25,7 +25,6 @@ const devRoutes = new Hono<HonoEnv>()
|
|||
|
||||
const buffer = await compressImage({
|
||||
inputFile: file,
|
||||
outputPath: "./images",
|
||||
targetSize: 500 * 1024,
|
||||
});
|
||||
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user