chore: add jimp dependency, icon padding script, and update configuration

This commit is contained in:
2026-05-31 14:04:37 +02:00
parent 30f81045ac
commit 7cd17307ba
1126 changed files with 166400 additions and 2 deletions
+46
View File
@@ -0,0 +1,46 @@
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;
ignoreSides?: {
north: boolean;
south: boolean;
east: boolean;
west: boolean;
};
},
cb?: ImageCallback<this>
): this;
}
interface Crop {
class: CropClass;
}
export default function (): Crop;