This commit is contained in:
Your Name
2026-08-11 17:41:36 +08:00
parent cfe4c82c90
commit 03fe4ddf9d
18771 changed files with 3617239 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
import { Jimp, ImageCallback } from '@jimp/core';
interface CropClass {
crop(x: number, y: number, w: number, h: number, cb?: ImageCallback<this>): this;
cropQuiet(
x: number,
y: number,
w: number,
h: number,
cb?: ImageCallback<this>
): this;
autocrop(tolerance?: number, cb?: ImageCallback<this>): this;
autocrop(cropOnlyFrames?: boolean, cb?: ImageCallback<this>): this;
autocrop(
tolerance?: number,
cropOnlyFrames?: boolean,
cb?: ImageCallback<this>
): this;
autocrop(
options: {
tolerance?: number;
cropOnlyFrames?: boolean;
cropSymmetric?: boolean;
leaveBorder?: number;
},
cb?: ImageCallback<this>
): this;
}
interface Crop {
class: CropClass
}
export default function(): Crop;