jimp 1.2.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/browser/index.d.ts +34 -3
- package/dist/browser/index.js +3 -3
- package/dist/browser/index.js.map +1 -1
- package/dist/commonjs/index.d.ts +33 -2
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +12 -1
- package/dist/commonjs/index.js.map +1 -1
- package/dist/esm/index.d.ts +33 -2
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +9 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +33 -33
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -95,6 +95,14 @@ export declare const defaultPlugins: ({
|
|
|
95
95
|
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
96
96
|
})[];
|
|
97
97
|
export declare const defaultFormats: (typeof bmp | typeof msBmp | typeof gif | typeof jpeg | typeof png | typeof tiff)[];
|
|
98
|
+
/** Convenience object for getting the MIME types of the default formats */
|
|
99
|
+
export declare const JimpMime: {
|
|
100
|
+
bmp: "image/bmp";
|
|
101
|
+
gif: "image/gif";
|
|
102
|
+
jpeg: "image/jpeg";
|
|
103
|
+
png: "image/png";
|
|
104
|
+
tiff: "image/tiff";
|
|
105
|
+
};
|
|
98
106
|
/**
|
|
99
107
|
* @class
|
|
100
108
|
*
|
|
@@ -168,8 +176,11 @@ export declare const Jimp: {
|
|
|
168
176
|
bitmap: import("@jimp/types").Bitmap;
|
|
169
177
|
background: number;
|
|
170
178
|
formats: import("@jimp/types").Format<any>[];
|
|
179
|
+
mime?: string;
|
|
171
180
|
inspect(): string;
|
|
172
181
|
toString(): string;
|
|
182
|
+
readonly width: number;
|
|
183
|
+
readonly height: number;
|
|
173
184
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
174
185
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
175
186
|
colors?: number | undefined;
|
|
@@ -312,12 +323,15 @@ export declare const Jimp: {
|
|
|
312
323
|
image: any;
|
|
313
324
|
}, void, unknown>;
|
|
314
325
|
};
|
|
315
|
-
read(url: string): Promise<{
|
|
326
|
+
read(url: string | Buffer | ArrayBuffer): Promise<{
|
|
316
327
|
bitmap: import("@jimp/types").Bitmap;
|
|
317
328
|
background: number;
|
|
318
329
|
formats: import("@jimp/types").Format<any>[];
|
|
330
|
+
mime?: string;
|
|
319
331
|
inspect(): string;
|
|
320
332
|
toString(): string;
|
|
333
|
+
readonly width: number;
|
|
334
|
+
readonly height: number;
|
|
321
335
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
322
336
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
323
337
|
colors?: number | undefined;
|
|
@@ -463,8 +477,11 @@ export declare const Jimp: {
|
|
|
463
477
|
bitmap: import("@jimp/types").Bitmap;
|
|
464
478
|
background: number;
|
|
465
479
|
formats: import("@jimp/types").Format<any>[];
|
|
480
|
+
mime?: string;
|
|
466
481
|
inspect(): string;
|
|
467
482
|
toString(): string;
|
|
483
|
+
readonly width: number;
|
|
484
|
+
readonly height: number;
|
|
468
485
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
469
486
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
470
487
|
colors?: number | undefined;
|
|
@@ -683,8 +700,11 @@ export declare const Jimp: {
|
|
|
683
700
|
bitmap: import("@jimp/types").Bitmap;
|
|
684
701
|
background: number;
|
|
685
702
|
formats: import("@jimp/types").Format<any>[];
|
|
703
|
+
mime?: string;
|
|
686
704
|
inspect(): string;
|
|
687
705
|
toString(): string;
|
|
706
|
+
readonly width: number;
|
|
707
|
+
readonly height: number;
|
|
688
708
|
getBuffer<ProvidedMimeType extends ReturnType<typeof bmp | typeof msBmp | typeof gif | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends (Record<"image/bmp", {
|
|
689
709
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
690
710
|
colors?: number | undefined;
|
|
@@ -903,8 +923,11 @@ export declare const Jimp: {
|
|
|
903
923
|
bitmap: import("@jimp/types").Bitmap;
|
|
904
924
|
background: number;
|
|
905
925
|
formats: import("@jimp/types").Format<any>[];
|
|
926
|
+
mime?: string;
|
|
906
927
|
inspect(): string;
|
|
907
928
|
toString(): string;
|
|
929
|
+
readonly width: number;
|
|
930
|
+
readonly height: number;
|
|
908
931
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
909
932
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
910
933
|
colors?: number | undefined;
|
|
@@ -1050,8 +1073,11 @@ export declare const Jimp: {
|
|
|
1050
1073
|
bitmap: import("@jimp/types").Bitmap;
|
|
1051
1074
|
background: number;
|
|
1052
1075
|
formats: import("@jimp/types").Format<any>[];
|
|
1076
|
+
mime?: string;
|
|
1053
1077
|
inspect(): string;
|
|
1054
1078
|
toString(): string;
|
|
1079
|
+
readonly width: number;
|
|
1080
|
+
readonly height: number;
|
|
1055
1081
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
1056
1082
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
1057
1083
|
colors?: number | undefined;
|
|
@@ -1270,8 +1296,11 @@ export declare const Jimp: {
|
|
|
1270
1296
|
bitmap: import("@jimp/types").Bitmap;
|
|
1271
1297
|
background: number;
|
|
1272
1298
|
formats: import("@jimp/types").Format<any>[];
|
|
1299
|
+
mime?: string;
|
|
1273
1300
|
inspect(): string;
|
|
1274
1301
|
toString(): string;
|
|
1302
|
+
readonly width: number;
|
|
1303
|
+
readonly height: number;
|
|
1275
1304
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
1276
1305
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
1277
1306
|
colors?: number | undefined;
|
|
@@ -1397,7 +1426,7 @@ export declare const Jimp: {
|
|
|
1397
1426
|
}> ? T_11 extends Record<Mime, infer O> ? O : never : never : never)>(path: `${string}.${Extension}`, options?: Options | undefined): Promise<void>;
|
|
1398
1427
|
clone<S extends {
|
|
1399
1428
|
new (options?: import("@jimp/core").JimpConstructorOptions): any;
|
|
1400
|
-
read(url: string): Promise<any & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1429
|
+
read(url: string | Buffer | ArrayBuffer): Promise<any & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1401
1430
|
blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
|
|
1402
1431
|
} & {
|
|
1403
1432
|
blur<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
|
|
@@ -1707,6 +1736,7 @@ export declare const Jimp: {
|
|
|
1707
1736
|
} & {
|
|
1708
1737
|
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1709
1738
|
}>);
|
|
1739
|
+
export type JimpInstance = InstanceType<typeof Jimp>;
|
|
1710
1740
|
export type { ColorAction, HueAction, MixAction, RedAction, XorAction, BlueAction, SpinAction, TintAction, GreenAction, ShadeAction, DarkenAction, LightenAction, BrightenAction, SaturateAction, GrayscaleAction, DesaturateAction, } from "@jimp/plugin-color";
|
|
1711
1741
|
export type { CircleOptions } from "@jimp/plugin-circle";
|
|
1712
1742
|
export type { AutocropOptions, CropOptions } from "@jimp/plugin-crop";
|
|
@@ -1723,6 +1753,7 @@ export { HorizontalAlign, VerticalAlign, BlendMode } from "@jimp/core";
|
|
|
1723
1753
|
export type { RawImageData, JimpConstructorOptions, JimpSimpleConstructorOptions, } from "@jimp/core";
|
|
1724
1754
|
export type { Bitmap, Edge, RGBAColor, RGBColor } from "@jimp/types";
|
|
1725
1755
|
export { loadFont } from "@jimp/plugin-print/load-font";
|
|
1756
|
+
export { measureText, measureTextHeight } from "@jimp/plugin-print";
|
|
1726
1757
|
export { diff } from "@jimp/diff";
|
|
1727
1758
|
export { intToRGBA, rgbaToInt, colorDiff, limit255, cssColorToHex, } from "@jimp/utils";
|
|
1728
1759
|
export type { FlipOptions } from "@jimp/plugin-flip";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,GAAG,EAAE,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,IAAI,MAAM,eAAe,CAAC;AAEjC,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,uBAAuB,CAAC;AAElD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AA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E,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AACvE,YAAY,EACV,YAAY,EACZ,sBAAsB,EACtB,4BAA4B,GAC7B,MAAM,YAAY,CAAC;AACpB,YAAY,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/commonjs/index.js
CHANGED
|
@@ -29,7 +29,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
29
29
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.cssColorToHex = exports.limit255 = exports.colorDiff = exports.rgbaToInt = exports.intToRGBA = exports.diff = exports.loadFont = exports.BlendMode = exports.VerticalAlign = exports.HorizontalAlign = exports.BmpCompression = exports.PNGFilterType = exports.PNGColorType = exports.compareHashes = exports.distance = exports.ResizeStrategy = exports.Jimp = exports.defaultFormats = exports.defaultPlugins = void 0;
|
|
32
|
+
exports.cssColorToHex = exports.limit255 = exports.colorDiff = exports.rgbaToInt = exports.intToRGBA = exports.diff = exports.measureTextHeight = exports.measureText = exports.loadFont = exports.BlendMode = exports.VerticalAlign = exports.HorizontalAlign = exports.BmpCompression = exports.PNGFilterType = exports.PNGColorType = exports.compareHashes = exports.distance = exports.ResizeStrategy = exports.Jimp = exports.JimpMime = exports.defaultFormats = exports.defaultPlugins = void 0;
|
|
33
33
|
// import { Jimp } from "@jimp/core";
|
|
34
34
|
const js_bmp_1 = __importStar(require("@jimp/js-bmp"));
|
|
35
35
|
const js_gif_1 = __importDefault(require("@jimp/js-gif"));
|
|
@@ -76,6 +76,14 @@ exports.defaultPlugins = [
|
|
|
76
76
|
quantize.methods,
|
|
77
77
|
];
|
|
78
78
|
exports.defaultFormats = [js_bmp_1.default, js_bmp_1.msBmp, js_gif_1.default, js_jpeg_1.default, js_png_1.default, js_tiff_1.default];
|
|
79
|
+
/** Convenience object for getting the MIME types of the default formats */
|
|
80
|
+
exports.JimpMime = {
|
|
81
|
+
bmp: (0, js_bmp_1.default)().mime,
|
|
82
|
+
gif: (0, js_gif_1.default)().mime,
|
|
83
|
+
jpeg: (0, js_jpeg_1.default)().mime,
|
|
84
|
+
png: (0, js_png_1.default)().mime,
|
|
85
|
+
tiff: (0, js_tiff_1.default)().mime,
|
|
86
|
+
};
|
|
79
87
|
// TODO: This doesn't document the constructor of the class
|
|
80
88
|
/**
|
|
81
89
|
* @class
|
|
@@ -165,6 +173,9 @@ Object.defineProperty(exports, "VerticalAlign", { enumerable: true, get: functio
|
|
|
165
173
|
Object.defineProperty(exports, "BlendMode", { enumerable: true, get: function () { return core_2.BlendMode; } });
|
|
166
174
|
var load_font_1 = require("@jimp/plugin-print/load-font");
|
|
167
175
|
Object.defineProperty(exports, "loadFont", { enumerable: true, get: function () { return load_font_1.loadFont; } });
|
|
176
|
+
var plugin_print_1 = require("@jimp/plugin-print");
|
|
177
|
+
Object.defineProperty(exports, "measureText", { enumerable: true, get: function () { return plugin_print_1.measureText; } });
|
|
178
|
+
Object.defineProperty(exports, "measureTextHeight", { enumerable: true, get: function () { return plugin_print_1.measureTextHeight; } });
|
|
168
179
|
var diff_1 = require("@jimp/diff");
|
|
169
180
|
Object.defineProperty(exports, "diff", { enumerable: true, get: function () { return diff_1.diff; } });
|
|
170
181
|
var utils_1 = require("@jimp/utils");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,qCAAqC;AAErC,uDAA0C;AAC1C,0DAA+B;AAC/B,4DAAiC;AACjC,0DAA+B;AAC/B,4DAAiC;AAEjC,wDAA0C;AAC1C,wDAA0C;AAC1C,4DAA8C;AAC9C,0DAA4C;AAC5C,8DAAgD;AAChD,0DAA4C;AAC5C,wDAA0C;AAC1C,gEAAkD;AAClD,4DAA8C;AAC9C,8DAAgD;AAChD,wDAA0C;AAC1C,wDAA0C;AAC1C,wDAA0C;AAC1C,0DAA4C;AAC5C,4DAA8C;AAC9C,4DAA8C;AAC9C,kEAAoD;AACpD,gEAAkD;AAElD,qCAAwC;AAE3B,QAAA,cAAc,GAAG;IAC5B,IAAI,CAAC,OAAO;IACZ,IAAI,CAAC,OAAO;IACZ,MAAM,CAAC,OAAO;IACd,KAAK,CAAC,OAAO;IACb,OAAO,CAAC,OAAO;IACf,KAAK,CAAC,OAAO;IACb,IAAI,CAAC,OAAO;IACZ,QAAQ,CAAC,OAAO;IAChB,MAAM,CAAC,OAAO;IACd,OAAO,CAAC,OAAO;IACf,IAAI,CAAC,OAAO;IACZ,IAAI,CAAC,OAAO;IACZ,IAAI,CAAC,OAAO;IACZ,KAAK,CAAC,OAAO;IACb,MAAM,CAAC,OAAO;IACd,MAAM,CAAC,OAAO;IACd,SAAS,CAAC,OAAO;IACjB,QAAQ,CAAC,OAAO;CACjB,CAAC;AAEW,QAAA,cAAc,GAAG,CAAC,gBAAG,EAAE,cAAK,EAAE,gB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,OAAA"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -95,6 +95,14 @@ export declare const defaultPlugins: ({
|
|
|
95
95
|
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
96
96
|
})[];
|
|
97
97
|
export declare const defaultFormats: (typeof bmp | typeof msBmp | typeof gif | typeof jpeg | typeof png | typeof tiff)[];
|
|
98
|
+
/** Convenience object for getting the MIME types of the default formats */
|
|
99
|
+
export declare const JimpMime: {
|
|
100
|
+
bmp: "image/bmp";
|
|
101
|
+
gif: "image/gif";
|
|
102
|
+
jpeg: "image/jpeg";
|
|
103
|
+
png: "image/png";
|
|
104
|
+
tiff: "image/tiff";
|
|
105
|
+
};
|
|
98
106
|
/**
|
|
99
107
|
* @class
|
|
100
108
|
*
|
|
@@ -168,8 +176,11 @@ export declare const Jimp: {
|
|
|
168
176
|
bitmap: import("@jimp/types").Bitmap;
|
|
169
177
|
background: number;
|
|
170
178
|
formats: import("@jimp/types").Format<any>[];
|
|
179
|
+
mime?: string;
|
|
171
180
|
inspect(): string;
|
|
172
181
|
toString(): string;
|
|
182
|
+
readonly width: number;
|
|
183
|
+
readonly height: number;
|
|
173
184
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
174
185
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
175
186
|
colors?: number | undefined;
|
|
@@ -312,12 +323,15 @@ export declare const Jimp: {
|
|
|
312
323
|
image: any;
|
|
313
324
|
}, void, unknown>;
|
|
314
325
|
};
|
|
315
|
-
read(url: string): Promise<{
|
|
326
|
+
read(url: string | Buffer | ArrayBuffer): Promise<{
|
|
316
327
|
bitmap: import("@jimp/types").Bitmap;
|
|
317
328
|
background: number;
|
|
318
329
|
formats: import("@jimp/types").Format<any>[];
|
|
330
|
+
mime?: string;
|
|
319
331
|
inspect(): string;
|
|
320
332
|
toString(): string;
|
|
333
|
+
readonly width: number;
|
|
334
|
+
readonly height: number;
|
|
321
335
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
322
336
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
323
337
|
colors?: number | undefined;
|
|
@@ -463,8 +477,11 @@ export declare const Jimp: {
|
|
|
463
477
|
bitmap: import("@jimp/types").Bitmap;
|
|
464
478
|
background: number;
|
|
465
479
|
formats: import("@jimp/types").Format<any>[];
|
|
480
|
+
mime?: string;
|
|
466
481
|
inspect(): string;
|
|
467
482
|
toString(): string;
|
|
483
|
+
readonly width: number;
|
|
484
|
+
readonly height: number;
|
|
468
485
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
469
486
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
470
487
|
colors?: number | undefined;
|
|
@@ -683,8 +700,11 @@ export declare const Jimp: {
|
|
|
683
700
|
bitmap: import("@jimp/types").Bitmap;
|
|
684
701
|
background: number;
|
|
685
702
|
formats: import("@jimp/types").Format<any>[];
|
|
703
|
+
mime?: string;
|
|
686
704
|
inspect(): string;
|
|
687
705
|
toString(): string;
|
|
706
|
+
readonly width: number;
|
|
707
|
+
readonly height: number;
|
|
688
708
|
getBuffer<ProvidedMimeType extends ReturnType<typeof bmp | typeof msBmp | typeof gif | typeof jpeg | typeof png | typeof tiff>["mime"], Options extends (Record<"image/bmp", {
|
|
689
709
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
690
710
|
colors?: number | undefined;
|
|
@@ -903,8 +923,11 @@ export declare const Jimp: {
|
|
|
903
923
|
bitmap: import("@jimp/types").Bitmap;
|
|
904
924
|
background: number;
|
|
905
925
|
formats: import("@jimp/types").Format<any>[];
|
|
926
|
+
mime?: string;
|
|
906
927
|
inspect(): string;
|
|
907
928
|
toString(): string;
|
|
929
|
+
readonly width: number;
|
|
930
|
+
readonly height: number;
|
|
908
931
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
909
932
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
910
933
|
colors?: number | undefined;
|
|
@@ -1050,8 +1073,11 @@ export declare const Jimp: {
|
|
|
1050
1073
|
bitmap: import("@jimp/types").Bitmap;
|
|
1051
1074
|
background: number;
|
|
1052
1075
|
formats: import("@jimp/types").Format<any>[];
|
|
1076
|
+
mime?: string;
|
|
1053
1077
|
inspect(): string;
|
|
1054
1078
|
toString(): string;
|
|
1079
|
+
readonly width: number;
|
|
1080
|
+
readonly height: number;
|
|
1055
1081
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
1056
1082
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
1057
1083
|
colors?: number | undefined;
|
|
@@ -1270,8 +1296,11 @@ export declare const Jimp: {
|
|
|
1270
1296
|
bitmap: import("@jimp/types").Bitmap;
|
|
1271
1297
|
background: number;
|
|
1272
1298
|
formats: import("@jimp/types").Format<any>[];
|
|
1299
|
+
mime?: string;
|
|
1273
1300
|
inspect(): string;
|
|
1274
1301
|
toString(): string;
|
|
1302
|
+
readonly width: number;
|
|
1303
|
+
readonly height: number;
|
|
1275
1304
|
getBuffer<ProvidedMimeType extends "image/bmp" | "image/tiff" | "image/x-ms-bmp" | "image/gif" | "image/jpeg" | "image/png", Options extends (Record<"image/bmp", {
|
|
1276
1305
|
palette?: import("@jimp/js-bmp").BmpColor[] | undefined;
|
|
1277
1306
|
colors?: number | undefined;
|
|
@@ -1397,7 +1426,7 @@ export declare const Jimp: {
|
|
|
1397
1426
|
}> ? T_11 extends Record<Mime, infer O> ? O : never : never : never)>(path: `${string}.${Extension}`, options?: Options | undefined): Promise<void>;
|
|
1398
1427
|
clone<S extends {
|
|
1399
1428
|
new (options?: import("@jimp/core").JimpConstructorOptions): any;
|
|
1400
|
-
read(url: string): Promise<any & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1429
|
+
read(url: string | Buffer | ArrayBuffer): Promise<any & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1401
1430
|
blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
|
|
1402
1431
|
} & {
|
|
1403
1432
|
blur<I extends import("@jimp/types").JimpClass>(image: I, r: number): I;
|
|
@@ -1707,6 +1736,7 @@ export declare const Jimp: {
|
|
|
1707
1736
|
} & {
|
|
1708
1737
|
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1709
1738
|
}>);
|
|
1739
|
+
export type JimpInstance = InstanceType<typeof Jimp>;
|
|
1710
1740
|
export type { ColorAction, HueAction, MixAction, RedAction, XorAction, BlueAction, SpinAction, TintAction, GreenAction, ShadeAction, DarkenAction, LightenAction, BrightenAction, SaturateAction, GrayscaleAction, DesaturateAction, } from "@jimp/plugin-color";
|
|
1711
1741
|
export type { CircleOptions } from "@jimp/plugin-circle";
|
|
1712
1742
|
export type { AutocropOptions, CropOptions } from "@jimp/plugin-crop";
|
|
@@ -1723,6 +1753,7 @@ export { HorizontalAlign, VerticalAlign, BlendMode } from "@jimp/core";
|
|
|
1723
1753
|
export type { RawImageData, JimpConstructorOptions, JimpSimpleConstructorOptions, } from "@jimp/core";
|
|
1724
1754
|
export type { Bitmap, Edge, RGBAColor, RGBColor } from "@jimp/types";
|
|
1725
1755
|
export { loadFont } from "@jimp/plugin-print/load-font";
|
|
1756
|
+
export { measureText, measureTextHeight } from "@jimp/plugin-print";
|
|
1726
1757
|
export { diff } from "@jimp/diff";
|
|
1727
1758
|
export { intToRGBA, rgbaToInt, colorDiff, limit255, cssColorToHex, } from "@jimp/utils";
|
|
1728
1759
|
export type { FlipOptions } from "@jimp/plugin-flip";
|
package/dist/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAIH,OAAO,GAAG,EAAE,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,IAAI,MAAM,eAAe,CAAC;AACjC,OAAO,GAAG,MAAM,cAAc,CAAC;AAC/B,OAAO,IAAI,MAAM,eAAe,CAAC;AAEjC,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAC1C,OAAO,KAAK,QAAQ,MAAM,uBAAuB,CAAC;AAElD,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAE1C,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,SAAS,MAAM,wBAAwB,CAAC;AACpD,OAAO,KAAK,QAAQ,MAAM,uBAAuB,CAAC;AAIlD,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAmB1B,CAAC;AAEF,eA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BAAoB,CAAC;AACpE,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,aAAa,GACd,MAAM,aAAa,CAAC;AACrB,YAAY,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,YAAY,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,YAAY,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC"}
|
package/dist/esm/index.js
CHANGED
|
@@ -47,6 +47,14 @@ export const defaultPlugins = [
|
|
|
47
47
|
quantize.methods,
|
|
48
48
|
];
|
|
49
49
|
export const defaultFormats = [bmp, msBmp, gif, jpeg, png, tiff];
|
|
50
|
+
/** Convenience object for getting the MIME types of the default formats */
|
|
51
|
+
export const JimpMime = {
|
|
52
|
+
bmp: bmp().mime,
|
|
53
|
+
gif: gif().mime,
|
|
54
|
+
jpeg: jpeg().mime,
|
|
55
|
+
png: png().mime,
|
|
56
|
+
tiff: tiff().mime,
|
|
57
|
+
};
|
|
50
58
|
// TODO: This doesn't document the constructor of the class
|
|
51
59
|
/**
|
|
52
60
|
* @class
|
|
@@ -126,6 +134,7 @@ export { PNGColorType, PNGFilterType } from "@jimp/js-png";
|
|
|
126
134
|
export { BmpCompression } from "@jimp/js-bmp";
|
|
127
135
|
export { HorizontalAlign, VerticalAlign, BlendMode } from "@jimp/core";
|
|
128
136
|
export { loadFont } from "@jimp/plugin-print/load-font";
|
|
137
|
+
export { measureText, measureTextHeight } from "@jimp/plugin-print";
|
|
129
138
|
export { diff } from "@jimp/diff";
|
|
130
139
|
export { intToRGBA, rgbaToInt, colorDiff, limit255, cssColorToHex, } from "@jimp/utils";
|
|
131
140
|
//# sourceMappingURL=index.js.map
|
package/dist/esm/index.js.map
CHANG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
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "An image processing library written entirely in JavaScript.",
|
|
6
6
|
"files": [
|
|
@@ -40,39 +40,39 @@
|
|
|
40
40
|
"author": "Andrew Lisowski <lisowski54@gmail.com>",
|
|
41
41
|
"license": "MIT",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@jimp/core": "1.
|
|
44
|
-
"@jimp/diff": "1.
|
|
45
|
-
"@jimp/js-bmp": "1.
|
|
46
|
-
"@jimp/js-gif": "1.
|
|
47
|
-
"@jimp/js-jpeg": "1.
|
|
48
|
-
"@jimp/js-png": "1.
|
|
49
|
-
"@jimp/js-tiff": "1.
|
|
50
|
-
"@jimp/plugin-blit": "1.
|
|
51
|
-
"@jimp/plugin-blur": "1.
|
|
52
|
-
"@jimp/plugin-circle": "1.
|
|
53
|
-
"@jimp/plugin-color": "1.
|
|
54
|
-
"@jimp/plugin-contain": "1.
|
|
55
|
-
"@jimp/plugin-cover": "1.
|
|
56
|
-
"@jimp/plugin-crop": "1.
|
|
57
|
-
"@jimp/plugin-displace": "1.
|
|
58
|
-
"@jimp/plugin-dither": "1.
|
|
59
|
-
"@jimp/plugin-fisheye": "1.
|
|
60
|
-
"@jimp/plugin-flip": "1.
|
|
61
|
-
"@jimp/plugin-hash": "1.
|
|
62
|
-
"@jimp/plugin-mask": "1.
|
|
63
|
-
"@jimp/plugin-print": "1.
|
|
64
|
-
"@jimp/plugin-quantize": "1.
|
|
65
|
-
"@jimp/plugin-resize": "1.
|
|
66
|
-
"@jimp/plugin-rotate": "1.
|
|
67
|
-
"@jimp/plugin-threshold": "1.
|
|
68
|
-
"@jimp/types": "1.
|
|
69
|
-
"@jimp/utils": "1.
|
|
43
|
+
"@jimp/core": "1.4.0",
|
|
44
|
+
"@jimp/diff": "1.4.0",
|
|
45
|
+
"@jimp/js-bmp": "1.4.0",
|
|
46
|
+
"@jimp/js-gif": "1.4.0",
|
|
47
|
+
"@jimp/js-jpeg": "1.4.0",
|
|
48
|
+
"@jimp/js-png": "1.4.0",
|
|
49
|
+
"@jimp/js-tiff": "1.4.0",
|
|
50
|
+
"@jimp/plugin-blit": "1.4.0",
|
|
51
|
+
"@jimp/plugin-blur": "1.4.0",
|
|
52
|
+
"@jimp/plugin-circle": "1.4.0",
|
|
53
|
+
"@jimp/plugin-color": "1.4.0",
|
|
54
|
+
"@jimp/plugin-contain": "1.4.0",
|
|
55
|
+
"@jimp/plugin-cover": "1.4.0",
|
|
56
|
+
"@jimp/plugin-crop": "1.4.0",
|
|
57
|
+
"@jimp/plugin-displace": "1.4.0",
|
|
58
|
+
"@jimp/plugin-dither": "1.4.0",
|
|
59
|
+
"@jimp/plugin-fisheye": "1.4.0",
|
|
60
|
+
"@jimp/plugin-flip": "1.4.0",
|
|
61
|
+
"@jimp/plugin-hash": "1.4.0",
|
|
62
|
+
"@jimp/plugin-mask": "1.4.0",
|
|
63
|
+
"@jimp/plugin-print": "1.4.0",
|
|
64
|
+
"@jimp/plugin-quantize": "1.4.0",
|
|
65
|
+
"@jimp/plugin-resize": "1.4.0",
|
|
66
|
+
"@jimp/plugin-rotate": "1.4.0",
|
|
67
|
+
"@jimp/plugin-threshold": "1.4.0",
|
|
68
|
+
"@jimp/types": "1.4.0",
|
|
69
|
+
"@jimp/utils": "1.4.0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@jimp/config-eslint": "1.
|
|
73
|
-
"@jimp/config-typescript": "1.
|
|
74
|
-
"@jimp/config-vitest": "1.
|
|
75
|
-
"@jimp/test-utils": "1.
|
|
72
|
+
"@jimp/config-eslint": "1.4.0",
|
|
73
|
+
"@jimp/config-typescript": "1.4.0",
|
|
74
|
+
"@jimp/config-vitest": "1.4.0",
|
|
75
|
+
"@jimp/test-utils": "1.4.0",
|
|
76
76
|
"@rollup/plugin-alias": "^5.1.0",
|
|
77
77
|
"@rollup/plugin-commonjs": "^26.0.1",
|
|
78
78
|
"@rollup/plugin-inject": "^5.0.5",
|
|
@@ -142,5 +142,5 @@
|
|
|
142
142
|
"access": "public"
|
|
143
143
|
},
|
|
144
144
|
"module": "./dist/esm/index.js",
|
|
145
|
-
"gitHead": "
|
|
145
|
+
"gitHead": "c1b91e9007f17d0702894bd9bfab8215cff764f9"
|
|
146
146
|
}
|