jimp 1.0.5 → 1.1.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/commonjs/index.d.ts +15 -0
- package/dist/commonjs/index.d.ts.map +1 -1
- package/dist/commonjs/index.js +2 -0
- package/dist/commonjs/index.js.map +1 -1
- package/dist/esm/index.d.ts +15 -0
- package/dist/esm/index.d.ts.map +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +35 -33
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import * as print from "@jimp/plugin-print";
|
|
|
20
20
|
import * as resize from "@jimp/plugin-resize";
|
|
21
21
|
import * as rotate from "@jimp/plugin-rotate";
|
|
22
22
|
import * as threshold from "@jimp/plugin-threshold";
|
|
23
|
+
import * as quantize from "@jimp/plugin-quantize";
|
|
23
24
|
/**
|
|
24
25
|
* @class
|
|
25
26
|
*
|
|
@@ -601,6 +602,8 @@ export declare const Jimp: {
|
|
|
601
602
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
602
603
|
} & {
|
|
603
604
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
605
|
+
} & {
|
|
606
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
604
607
|
}>>;
|
|
605
608
|
fromBitmap(bitmap: import("@jimp/core").RawImageData): InstanceType<any> & import("@jimp/core").JimpInstanceMethods<{
|
|
606
609
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -819,6 +822,8 @@ export declare const Jimp: {
|
|
|
819
822
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
820
823
|
} & {
|
|
821
824
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
825
|
+
} & {
|
|
826
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
822
827
|
}>;
|
|
823
828
|
fromBuffer(buffer: Buffer | ArrayBuffer): Promise<{
|
|
824
829
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -1184,6 +1189,8 @@ export declare const Jimp: {
|
|
|
1184
1189
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
1185
1190
|
} & {
|
|
1186
1191
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1192
|
+
} & {
|
|
1193
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
1187
1194
|
}>>;
|
|
1188
1195
|
} & (new (...args: any[]) => import("@jimp/core").JimpInstanceMethods<{
|
|
1189
1196
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -1386,6 +1393,8 @@ export declare const Jimp: {
|
|
|
1386
1393
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
1387
1394
|
} & {
|
|
1388
1395
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1396
|
+
} & {
|
|
1397
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
1389
1398
|
}>>;
|
|
1390
1399
|
fromBitmap(bitmap: import("@jimp/core").RawImageData): InstanceType<any> & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1391
1400
|
blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
|
|
@@ -1457,6 +1466,8 @@ export declare const Jimp: {
|
|
|
1457
1466
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
1458
1467
|
} & {
|
|
1459
1468
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1469
|
+
} & {
|
|
1470
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
1460
1471
|
}>;
|
|
1461
1472
|
fromBuffer(buffer: Buffer | ArrayBuffer): Promise<any & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1462
1473
|
blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
|
|
@@ -1528,6 +1539,8 @@ export declare const Jimp: {
|
|
|
1528
1539
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
1529
1540
|
} & {
|
|
1530
1541
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1542
|
+
} & {
|
|
1543
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
1531
1544
|
}>>;
|
|
1532
1545
|
}>(this: S): S;
|
|
1533
1546
|
getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
|
|
@@ -1617,6 +1630,8 @@ export declare const Jimp: {
|
|
|
1617
1630
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
1618
1631
|
} & {
|
|
1619
1632
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1633
|
+
} & {
|
|
1634
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
1620
1635
|
}>);
|
|
1621
1636
|
export type { ColorAction, HueAction, MixAction, RedAction, XorAction, BlueAction, SpinAction, TintAction, GreenAction, ShadeAction, DarkenAction, LightenAction, BrightenAction, SaturateAction, GrayscaleAction, DesaturateAction, } from "@jimp/plugin-color";
|
|
1622
1637
|
export type { CircleOptions } from "@jimp/plugin-circle";
|
|
@@ -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;
|
|
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,GA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YAAY,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAC5D,YAAY,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,YAAY,EAAE,QAAQ,EAAE,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,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
|
@@ -53,6 +53,7 @@ const print = __importStar(require("@jimp/plugin-print"));
|
|
|
53
53
|
const resize = __importStar(require("@jimp/plugin-resize"));
|
|
54
54
|
const rotate = __importStar(require("@jimp/plugin-rotate"));
|
|
55
55
|
const threshold = __importStar(require("@jimp/plugin-threshold"));
|
|
56
|
+
const quantize = __importStar(require("@jimp/plugin-quantize"));
|
|
56
57
|
const core_1 = require("@jimp/core");
|
|
57
58
|
// TODO: This doesn't document the constructor of the class
|
|
58
59
|
/**
|
|
@@ -143,6 +144,7 @@ exports.Jimp = (0, core_1.createJimp)({
|
|
|
143
144
|
resize.methods,
|
|
144
145
|
rotate.methods,
|
|
145
146
|
threshold.methods,
|
|
147
|
+
quantize.methods,
|
|
146
148
|
],
|
|
147
149
|
});
|
|
148
150
|
var plugin_resize_1 = require("@jimp/plugin-resize");
|
|
@@ -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;
|
|
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,wDAA0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,OAAA;AACb,qCAMqB;AALnB,kGAAA,SAAS,OAAA;AACT,kGAAA,SAAS,OAAA;AACT,kGAAA,SAAS,OAAA;AACT,iGAAA,QAAQ,OAAA;AACR,sGAAA,aAAa,OAAA"}
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ import * as print from "@jimp/plugin-print";
|
|
|
20
20
|
import * as resize from "@jimp/plugin-resize";
|
|
21
21
|
import * as rotate from "@jimp/plugin-rotate";
|
|
22
22
|
import * as threshold from "@jimp/plugin-threshold";
|
|
23
|
+
import * as quantize from "@jimp/plugin-quantize";
|
|
23
24
|
/**
|
|
24
25
|
* @class
|
|
25
26
|
*
|
|
@@ -601,6 +602,8 @@ export declare const Jimp: {
|
|
|
601
602
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
602
603
|
} & {
|
|
603
604
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
605
|
+
} & {
|
|
606
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
604
607
|
}>>;
|
|
605
608
|
fromBitmap(bitmap: import("@jimp/core").RawImageData): InstanceType<any> & import("@jimp/core").JimpInstanceMethods<{
|
|
606
609
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -819,6 +822,8 @@ export declare const Jimp: {
|
|
|
819
822
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
820
823
|
} & {
|
|
821
824
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
825
|
+
} & {
|
|
826
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
822
827
|
}>;
|
|
823
828
|
fromBuffer(buffer: Buffer | ArrayBuffer): Promise<{
|
|
824
829
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -1184,6 +1189,8 @@ export declare const Jimp: {
|
|
|
1184
1189
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
1185
1190
|
} & {
|
|
1186
1191
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1192
|
+
} & {
|
|
1193
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
1187
1194
|
}>>;
|
|
1188
1195
|
} & (new (...args: any[]) => import("@jimp/core").JimpInstanceMethods<{
|
|
1189
1196
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -1386,6 +1393,8 @@ export declare const Jimp: {
|
|
|
1386
1393
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
1387
1394
|
} & {
|
|
1388
1395
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1396
|
+
} & {
|
|
1397
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
1389
1398
|
}>>;
|
|
1390
1399
|
fromBitmap(bitmap: import("@jimp/core").RawImageData): InstanceType<any> & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1391
1400
|
blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
|
|
@@ -1457,6 +1466,8 @@ export declare const Jimp: {
|
|
|
1457
1466
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
1458
1467
|
} & {
|
|
1459
1468
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1469
|
+
} & {
|
|
1470
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
1460
1471
|
}>;
|
|
1461
1472
|
fromBuffer(buffer: Buffer | ArrayBuffer): Promise<any & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1462
1473
|
blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
|
|
@@ -1528,6 +1539,8 @@ export declare const Jimp: {
|
|
|
1528
1539
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
1529
1540
|
} & {
|
|
1530
1541
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1542
|
+
} & {
|
|
1543
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
1531
1544
|
}>>;
|
|
1532
1545
|
}>(this: S): S;
|
|
1533
1546
|
getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
|
|
@@ -1617,6 +1630,8 @@ export declare const Jimp: {
|
|
|
1617
1630
|
rotate<I extends import("@jimp/types").JimpClass>(image: I, options: rotate.RotateOptions): I;
|
|
1618
1631
|
} & {
|
|
1619
1632
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1633
|
+
} & {
|
|
1634
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): I;
|
|
1620
1635
|
}>);
|
|
1621
1636
|
export type { ColorAction, HueAction, MixAction, RedAction, XorAction, BlueAction, SpinAction, TintAction, GreenAction, ShadeAction, DarkenAction, LightenAction, BrightenAction, SaturateAction, GrayscaleAction, DesaturateAction, } from "@jimp/plugin-color";
|
|
1622
1637
|
export type { CircleOptions } from "@jimp/plugin-circle";
|
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;
|
|
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,I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e,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAClD,YAAY,EAAE,QAAQ,EAAE,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,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
|
@@ -24,6 +24,7 @@ import * as print from "@jimp/plugin-print";
|
|
|
24
24
|
import * as resize from "@jimp/plugin-resize";
|
|
25
25
|
import * as rotate from "@jimp/plugin-rotate";
|
|
26
26
|
import * as threshold from "@jimp/plugin-threshold";
|
|
27
|
+
import * as quantize from "@jimp/plugin-quantize";
|
|
27
28
|
import { createJimp } from "@jimp/core";
|
|
28
29
|
// TODO: This doesn't document the constructor of the class
|
|
29
30
|
/**
|
|
@@ -114,6 +115,7 @@ export const Jimp = createJimp({
|
|
|
114
115
|
resize.methods,
|
|
115
116
|
rotate.methods,
|
|
116
117
|
threshold.methods,
|
|
118
|
+
quantize.methods,
|
|
117
119
|
],
|
|
118
120
|
});
|
|
119
121
|
export { ResizeStrategy } from "@jimp/plugin-resize";
|
package/dist/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,qCAAqC;AAErC,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;AAC1C,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAC1C,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;AAClD,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,OAAO,MAAM,sBAAsB,CAAC;AAChD,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAC1C,OAAO,KAAK,IAAI,MAAM,mBAAmB,CAAC;AAC1C,OAAO,KAAK,KAAK,MAAM,oBAAoB,CAAC;AAC5C,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAC;AAC9C,OAAO,KAAK,MAAM,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CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jimp",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "An image processing library written entirely in JavaScript.",
|
|
6
6
|
"files": [
|
|
@@ -36,38 +36,39 @@
|
|
|
36
36
|
"author": "Andrew Lisowski <lisowski54@gmail.com>",
|
|
37
37
|
"license": "MIT",
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@jimp/core": "1.0
|
|
40
|
-
"@jimp/diff": "1.0
|
|
41
|
-
"@jimp/js-bmp": "1.0
|
|
42
|
-
"@jimp/js-gif": "1.0
|
|
43
|
-
"@jimp/js-jpeg": "1.0
|
|
44
|
-
"@jimp/js-png": "1.0
|
|
45
|
-
"@jimp/js-tiff": "1.0
|
|
46
|
-
"@jimp/plugin-blit": "1.0
|
|
47
|
-
"@jimp/plugin-blur": "1.0
|
|
48
|
-
"@jimp/plugin-circle": "1.0
|
|
49
|
-
"@jimp/plugin-color": "1.0
|
|
50
|
-
"@jimp/plugin-contain": "1.0
|
|
51
|
-
"@jimp/plugin-cover": "1.0
|
|
52
|
-
"@jimp/plugin-crop": "1.0
|
|
53
|
-
"@jimp/plugin-displace": "1.0
|
|
54
|
-
"@jimp/plugin-dither": "1.0
|
|
55
|
-
"@jimp/plugin-fisheye": "1.0
|
|
56
|
-
"@jimp/plugin-flip": "1.0
|
|
57
|
-
"@jimp/plugin-hash": "1.0
|
|
58
|
-
"@jimp/plugin-mask": "1.0
|
|
59
|
-
"@jimp/plugin-print": "1.0
|
|
60
|
-
"@jimp/plugin-
|
|
61
|
-
"@jimp/plugin-
|
|
62
|
-
"@jimp/plugin-
|
|
63
|
-
"@jimp/
|
|
64
|
-
"@jimp/
|
|
39
|
+
"@jimp/core": "1.1.0",
|
|
40
|
+
"@jimp/diff": "1.1.0",
|
|
41
|
+
"@jimp/js-bmp": "1.1.0",
|
|
42
|
+
"@jimp/js-gif": "1.1.0",
|
|
43
|
+
"@jimp/js-jpeg": "1.1.0",
|
|
44
|
+
"@jimp/js-png": "1.1.0",
|
|
45
|
+
"@jimp/js-tiff": "1.1.0",
|
|
46
|
+
"@jimp/plugin-blit": "1.1.0",
|
|
47
|
+
"@jimp/plugin-blur": "1.1.0",
|
|
48
|
+
"@jimp/plugin-circle": "1.1.0",
|
|
49
|
+
"@jimp/plugin-color": "1.1.0",
|
|
50
|
+
"@jimp/plugin-contain": "1.1.0",
|
|
51
|
+
"@jimp/plugin-cover": "1.1.0",
|
|
52
|
+
"@jimp/plugin-crop": "1.1.0",
|
|
53
|
+
"@jimp/plugin-displace": "1.1.0",
|
|
54
|
+
"@jimp/plugin-dither": "1.1.0",
|
|
55
|
+
"@jimp/plugin-fisheye": "1.1.0",
|
|
56
|
+
"@jimp/plugin-flip": "1.1.0",
|
|
57
|
+
"@jimp/plugin-hash": "1.1.0",
|
|
58
|
+
"@jimp/plugin-mask": "1.1.0",
|
|
59
|
+
"@jimp/plugin-print": "1.1.0",
|
|
60
|
+
"@jimp/plugin-quantize": "1.1.0",
|
|
61
|
+
"@jimp/plugin-resize": "1.1.0",
|
|
62
|
+
"@jimp/plugin-rotate": "1.1.0",
|
|
63
|
+
"@jimp/plugin-threshold": "1.1.0",
|
|
64
|
+
"@jimp/types": "1.1.0",
|
|
65
|
+
"@jimp/utils": "1.1.0"
|
|
65
66
|
},
|
|
66
67
|
"devDependencies": {
|
|
67
|
-
"@jimp/config-eslint": "1.0
|
|
68
|
-
"@jimp/config-typescript": "1.0
|
|
69
|
-
"@jimp/config-vitest": "1.0
|
|
70
|
-
"@jimp/test-utils": "1.0
|
|
68
|
+
"@jimp/config-eslint": "1.1.0",
|
|
69
|
+
"@jimp/config-typescript": "1.1.0",
|
|
70
|
+
"@jimp/config-vitest": "1.1.0",
|
|
71
|
+
"@jimp/test-utils": "1.1.0",
|
|
71
72
|
"@rollup/plugin-alias": "^5.1.0",
|
|
72
73
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
73
74
|
"@rollup/plugin-inject": "^5.0.5",
|
|
@@ -81,7 +82,7 @@
|
|
|
81
82
|
"rollup-plugin-dts": "^6.1.0",
|
|
82
83
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
83
84
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
84
|
-
"tshy": "^
|
|
85
|
+
"tshy": "^3.0.2",
|
|
85
86
|
"typescript": "^5.5.4",
|
|
86
87
|
"vite-plugin-node-polyfills": "^0.21.0",
|
|
87
88
|
"vitest": "^1.4.0"
|
|
@@ -133,5 +134,6 @@
|
|
|
133
134
|
"publishConfig": {
|
|
134
135
|
"access": "public"
|
|
135
136
|
},
|
|
136
|
-
"
|
|
137
|
+
"module": "./dist/esm/index.js",
|
|
138
|
+
"gitHead": "887b0cb53fe5b8d545c8cda82a3db5ef90f18136"
|
|
137
139
|
}
|