From 303652101b339b1ad2d385e5c6f67ec341f94925 Mon Sep 17 00:00:00 2001 From: Sebastian Frank Date: Thu, 24 Apr 2025 10:04:10 +0000 Subject: [PATCH] feat(index.d.ts): erweitere Bildverarbeitungsoptionen um Resampling, Anker, und Dimensionseinsparungen --- index.d.ts | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 6bc85f0..db79a44 100644 --- a/index.d.ts +++ b/index.d.ts @@ -465,10 +465,26 @@ declare global { sourceFile: string, targetFile: string, filters: { - fit?: boolean - fill?: boolean width?: number height?: number + fit?: boolean + fill?: boolean + resampling?: "nearestNeighbor" + | "hermite" + | "linear" + | "catmullRom" + | "lanczos" + | "box" + | "mitchellNetravili" + | "bSpline" + | "gaussian" + | "bartlett" + | "hann" + | "hamming" + | "blackman" + | "welch" + | "cosine" + anchor?: "center" | "topLeft" | "top" | "topRight" | "left" | "right" | "bottomLeft" | "bottom" | "bottomRight" brightness?: number saturation?: number contrast?: number @@ -479,6 +495,8 @@ declare global { grayscale?: boolean quality?: number lossless?: boolean + skipLargerDimensions?: boolean + skipLargerFilesize?: boolean outputType?: "jpg" | "jpeg" | "png" | "webp" }[] ): void