Path: blob/master/node_modules/@jimp/plugin-crop/index.d.ts
1126 views
import { Jimp, ImageCallback } from '@jimp/core';12interface CropClass {3crop(x: number, y: number, w: number, h: number, cb?: ImageCallback<this>): this;4cropQuiet(5x: number,6y: number,7w: number,8h: number,9cb?: ImageCallback<this>10): this;11autocrop(tolerance?: number, cb?: ImageCallback<this>): this;12autocrop(cropOnlyFrames?: boolean, cb?: ImageCallback<this>): this;13autocrop(14tolerance?: number,15cropOnlyFrames?: boolean,16cb?: ImageCallback<this>17): this;18autocrop(19options: {20tolerance?: number;21cropOnlyFrames?: boolean;22cropSymmetric?: boolean;23leaveBorder?: number;24ignoreSides?: {25north: boolean;26south: boolean;27east: boolean;28west: boolean;29}30},31cb?: ImageCallback<this>32): this;33}3435interface Crop {36class: CropClass37}3839export default function(): Crop;404142