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
+40
View File
@@ -0,0 +1,40 @@
import { DecoderFn, EncoderFn, ImageCallback } from "@jimp/core";
interface PNGClass {
_deflateLevel: number;
_deflateStrategy: number;
_filterType: number;
_colorType: number;
deflateLevel(l: number, cb?: ImageCallback<this>): this;
deflateStrategy(s: number, cb?: ImageCallback<this>): this;
filterType(f: number, cb?: ImageCallback<this>): this;
colorType(s: number, cb?: ImageCallback<this>): this;
}
interface PNG {
mime: { "image/png": string[] };
hasAlpha: { "image/png": true };
decoders: {
"image/png": DecoderFn;
};
encoders: {
"image/png": EncoderFn;
};
class: PNGClass;
constants: {
MIME_PNG: "image/png";
// PNG filter types
PNG_FILTER_AUTO: -1;
PNG_FILTER_NONE: 0;
PNG_FILTER_SUB: 1;
PNG_FILTER_UP: 2;
PNG_FILTER_AVERAGE: 3;
PNG_FILTER_PATH: 4;
};
}
export default function (): PNG;