jimp 1.1.2 → 1.1.3
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/browser.js +236 -0
- package/browser.js.map +1 -0
- package/dist/commonjs/index.d.ts +7 -7
- package/dist/esm/index.d.ts +7 -7
- package/package.json +45 -41
package/dist/commonjs/index.d.ts
CHANGED
|
@@ -603,7 +603,7 @@ export declare const Jimp: {
|
|
|
603
603
|
} & {
|
|
604
604
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
605
605
|
} & {
|
|
606
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
606
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
607
607
|
}>>;
|
|
608
608
|
fromBitmap(bitmap: import("@jimp/core").RawImageData): InstanceType<any> & import("@jimp/core").JimpInstanceMethods<{
|
|
609
609
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -823,7 +823,7 @@ export declare const Jimp: {
|
|
|
823
823
|
} & {
|
|
824
824
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
825
825
|
} & {
|
|
826
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
826
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
827
827
|
}>;
|
|
828
828
|
fromBuffer(buffer: Buffer | ArrayBuffer): Promise<{
|
|
829
829
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -1190,7 +1190,7 @@ export declare const Jimp: {
|
|
|
1190
1190
|
} & {
|
|
1191
1191
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1192
1192
|
} & {
|
|
1193
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
1193
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1194
1194
|
}>>;
|
|
1195
1195
|
} & (new (...args: any[]) => import("@jimp/core").JimpInstanceMethods<{
|
|
1196
1196
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -1394,7 +1394,7 @@ export declare const Jimp: {
|
|
|
1394
1394
|
} & {
|
|
1395
1395
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1396
1396
|
} & {
|
|
1397
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
1397
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1398
1398
|
}>>;
|
|
1399
1399
|
fromBitmap(bitmap: import("@jimp/core").RawImageData): InstanceType<any> & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1400
1400
|
blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
|
|
@@ -1467,7 +1467,7 @@ export declare const Jimp: {
|
|
|
1467
1467
|
} & {
|
|
1468
1468
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1469
1469
|
} & {
|
|
1470
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
1470
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1471
1471
|
}>;
|
|
1472
1472
|
fromBuffer(buffer: Buffer | ArrayBuffer): Promise<any & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1473
1473
|
blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
|
|
@@ -1540,7 +1540,7 @@ export declare const Jimp: {
|
|
|
1540
1540
|
} & {
|
|
1541
1541
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1542
1542
|
} & {
|
|
1543
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
1543
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1544
1544
|
}>>;
|
|
1545
1545
|
}>(this: S): S;
|
|
1546
1546
|
getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
|
|
@@ -1631,7 +1631,7 @@ export declare const Jimp: {
|
|
|
1631
1631
|
} & {
|
|
1632
1632
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1633
1633
|
} & {
|
|
1634
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
1634
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1635
1635
|
}>);
|
|
1636
1636
|
export type { ColorAction, HueAction, MixAction, RedAction, XorAction, BlueAction, SpinAction, TintAction, GreenAction, ShadeAction, DarkenAction, LightenAction, BrightenAction, SaturateAction, GrayscaleAction, DesaturateAction, } from "@jimp/plugin-color";
|
|
1637
1637
|
export type { CircleOptions } from "@jimp/plugin-circle";
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -603,7 +603,7 @@ export declare const Jimp: {
|
|
|
603
603
|
} & {
|
|
604
604
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
605
605
|
} & {
|
|
606
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
606
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
607
607
|
}>>;
|
|
608
608
|
fromBitmap(bitmap: import("@jimp/core").RawImageData): InstanceType<any> & import("@jimp/core").JimpInstanceMethods<{
|
|
609
609
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -823,7 +823,7 @@ export declare const Jimp: {
|
|
|
823
823
|
} & {
|
|
824
824
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
825
825
|
} & {
|
|
826
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
826
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
827
827
|
}>;
|
|
828
828
|
fromBuffer(buffer: Buffer | ArrayBuffer): Promise<{
|
|
829
829
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -1190,7 +1190,7 @@ export declare const Jimp: {
|
|
|
1190
1190
|
} & {
|
|
1191
1191
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1192
1192
|
} & {
|
|
1193
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
1193
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1194
1194
|
}>>;
|
|
1195
1195
|
} & (new (...args: any[]) => import("@jimp/core").JimpInstanceMethods<{
|
|
1196
1196
|
bitmap: import("@jimp/types").Bitmap;
|
|
@@ -1394,7 +1394,7 @@ export declare const Jimp: {
|
|
|
1394
1394
|
} & {
|
|
1395
1395
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1396
1396
|
} & {
|
|
1397
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
1397
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1398
1398
|
}>>;
|
|
1399
1399
|
fromBitmap(bitmap: import("@jimp/core").RawImageData): InstanceType<any> & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1400
1400
|
blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
|
|
@@ -1467,7 +1467,7 @@ export declare const Jimp: {
|
|
|
1467
1467
|
} & {
|
|
1468
1468
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1469
1469
|
} & {
|
|
1470
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
1470
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1471
1471
|
}>;
|
|
1472
1472
|
fromBuffer(buffer: Buffer | ArrayBuffer): Promise<any & import("@jimp/core").JimpInstanceMethods<any, {
|
|
1473
1473
|
blit<I extends import("@jimp/types").JimpClass>(image: I, options: blit.BlitOptions): I;
|
|
@@ -1540,7 +1540,7 @@ export declare const Jimp: {
|
|
|
1540
1540
|
} & {
|
|
1541
1541
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1542
1542
|
} & {
|
|
1543
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
1543
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1544
1544
|
}>>;
|
|
1545
1545
|
}>(this: S): S;
|
|
1546
1546
|
getPixelIndex(x: number, y: number, edgeHandling?: import("@jimp/types").Edge): number;
|
|
@@ -1631,7 +1631,7 @@ export declare const Jimp: {
|
|
|
1631
1631
|
} & {
|
|
1632
1632
|
threshold<I extends import("@jimp/types").JimpClass>(image: I, options: threshold.ThresholdOptions): I;
|
|
1633
1633
|
} & {
|
|
1634
|
-
quantize<I extends import("@jimp/types").JimpClass>(image: I,
|
|
1634
|
+
quantize<I extends import("@jimp/types").JimpClass>(image: I, options: quantize.QuantizeOptions): I;
|
|
1635
1635
|
}>);
|
|
1636
1636
|
export type { ColorAction, HueAction, MixAction, RedAction, XorAction, BlueAction, SpinAction, TintAction, GreenAction, ShadeAction, DarkenAction, LightenAction, BrightenAction, SaturateAction, GrayscaleAction, DesaturateAction, } from "@jimp/plugin-color";
|
|
1637
1637
|
export type { CircleOptions } from "@jimp/plugin-circle";
|
package/package.json
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jimp",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"description": "An image processing library written entirely in JavaScript.",
|
|
6
6
|
"files": [
|
|
7
|
-
"browser",
|
|
7
|
+
"browser.js",
|
|
8
|
+
"browser.js.map",
|
|
8
9
|
"dist",
|
|
9
10
|
"es",
|
|
10
11
|
"index.d.ts",
|
|
@@ -12,6 +13,9 @@
|
|
|
12
13
|
"types"
|
|
13
14
|
],
|
|
14
15
|
"repository": "jimp-dev/jimp",
|
|
16
|
+
"engines": {
|
|
17
|
+
"node": ">=18"
|
|
18
|
+
},
|
|
15
19
|
"scripts": {
|
|
16
20
|
"lint": "eslint .",
|
|
17
21
|
"test": "vitest",
|
|
@@ -36,56 +40,56 @@
|
|
|
36
40
|
"author": "Andrew Lisowski <lisowski54@gmail.com>",
|
|
37
41
|
"license": "MIT",
|
|
38
42
|
"dependencies": {
|
|
39
|
-
"@jimp/core": "1.1.
|
|
40
|
-
"@jimp/diff": "1.1.
|
|
41
|
-
"@jimp/js-bmp": "1.1.
|
|
42
|
-
"@jimp/js-gif": "1.1.
|
|
43
|
-
"@jimp/js-jpeg": "1.1.
|
|
44
|
-
"@jimp/js-png": "1.1.
|
|
45
|
-
"@jimp/js-tiff": "1.1.
|
|
46
|
-
"@jimp/plugin-blit": "1.1.
|
|
47
|
-
"@jimp/plugin-blur": "1.1.
|
|
48
|
-
"@jimp/plugin-circle": "1.1.
|
|
49
|
-
"@jimp/plugin-color": "1.1.
|
|
50
|
-
"@jimp/plugin-contain": "1.1.
|
|
51
|
-
"@jimp/plugin-cover": "1.1.
|
|
52
|
-
"@jimp/plugin-crop": "1.1.
|
|
53
|
-
"@jimp/plugin-displace": "1.1.
|
|
54
|
-
"@jimp/plugin-dither": "1.1.
|
|
55
|
-
"@jimp/plugin-fisheye": "1.1.
|
|
56
|
-
"@jimp/plugin-flip": "1.1.
|
|
57
|
-
"@jimp/plugin-hash": "1.1.
|
|
58
|
-
"@jimp/plugin-mask": "1.1.
|
|
59
|
-
"@jimp/plugin-print": "1.1.
|
|
60
|
-
"@jimp/plugin-quantize": "1.1.
|
|
61
|
-
"@jimp/plugin-resize": "1.1.
|
|
62
|
-
"@jimp/plugin-rotate": "1.1.
|
|
63
|
-
"@jimp/plugin-threshold": "1.1.
|
|
64
|
-
"@jimp/types": "1.1.
|
|
65
|
-
"@jimp/utils": "1.1.
|
|
43
|
+
"@jimp/core": "1.1.3",
|
|
44
|
+
"@jimp/diff": "1.1.3",
|
|
45
|
+
"@jimp/js-bmp": "1.1.3",
|
|
46
|
+
"@jimp/js-gif": "1.1.3",
|
|
47
|
+
"@jimp/js-jpeg": "1.1.3",
|
|
48
|
+
"@jimp/js-png": "1.1.3",
|
|
49
|
+
"@jimp/js-tiff": "1.1.3",
|
|
50
|
+
"@jimp/plugin-blit": "1.1.3",
|
|
51
|
+
"@jimp/plugin-blur": "1.1.3",
|
|
52
|
+
"@jimp/plugin-circle": "1.1.3",
|
|
53
|
+
"@jimp/plugin-color": "1.1.3",
|
|
54
|
+
"@jimp/plugin-contain": "1.1.3",
|
|
55
|
+
"@jimp/plugin-cover": "1.1.3",
|
|
56
|
+
"@jimp/plugin-crop": "1.1.3",
|
|
57
|
+
"@jimp/plugin-displace": "1.1.3",
|
|
58
|
+
"@jimp/plugin-dither": "1.1.3",
|
|
59
|
+
"@jimp/plugin-fisheye": "1.1.3",
|
|
60
|
+
"@jimp/plugin-flip": "1.1.3",
|
|
61
|
+
"@jimp/plugin-hash": "1.1.3",
|
|
62
|
+
"@jimp/plugin-mask": "1.1.3",
|
|
63
|
+
"@jimp/plugin-print": "1.1.3",
|
|
64
|
+
"@jimp/plugin-quantize": "1.1.3",
|
|
65
|
+
"@jimp/plugin-resize": "1.1.3",
|
|
66
|
+
"@jimp/plugin-rotate": "1.1.3",
|
|
67
|
+
"@jimp/plugin-threshold": "1.1.3",
|
|
68
|
+
"@jimp/types": "1.1.3",
|
|
69
|
+
"@jimp/utils": "1.1.3"
|
|
66
70
|
},
|
|
67
71
|
"devDependencies": {
|
|
68
|
-
"@jimp/config-eslint": "1.1.
|
|
69
|
-
"@jimp/config-typescript": "1.1.
|
|
70
|
-
"@jimp/config-vitest": "1.1.
|
|
71
|
-
"@jimp/test-utils": "1.1.
|
|
72
|
+
"@jimp/config-eslint": "1.1.3",
|
|
73
|
+
"@jimp/config-typescript": "1.1.3",
|
|
74
|
+
"@jimp/config-vitest": "1.1.3",
|
|
75
|
+
"@jimp/test-utils": "1.1.3",
|
|
72
76
|
"@rollup/plugin-alias": "^5.1.0",
|
|
73
|
-
"@rollup/plugin-commonjs": "^
|
|
77
|
+
"@rollup/plugin-commonjs": "^26.0.1",
|
|
74
78
|
"@rollup/plugin-inject": "^5.0.5",
|
|
75
79
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
76
80
|
"@rollup/plugin-terser": "^0.4.4",
|
|
77
|
-
"@vitest/browser": "^
|
|
78
|
-
"eslint": "^
|
|
81
|
+
"@vitest/browser": "^2.0.5",
|
|
82
|
+
"eslint": "^9.9.1",
|
|
79
83
|
"node-self": "^1.0.2",
|
|
80
84
|
"path-browserify": "^1.0.1",
|
|
81
|
-
"rollup": "^4.
|
|
82
|
-
"rollup-plugin-dts": "^6.1.
|
|
85
|
+
"rollup": "^4.21.2",
|
|
86
|
+
"rollup-plugin-dts": "^6.1.1",
|
|
83
87
|
"rollup-plugin-esbuild": "^6.1.1",
|
|
84
88
|
"rollup-plugin-polyfill-node": "^0.13.0",
|
|
85
89
|
"tshy": "^3.0.2",
|
|
86
90
|
"typescript": "^5.5.4",
|
|
87
|
-
"vite-plugin-node-polyfills": "^0.
|
|
88
|
-
"vitest": "^
|
|
91
|
+
"vite-plugin-node-polyfills": "^0.22.0",
|
|
92
|
+
"vitest": "^2.0.5"
|
|
89
93
|
},
|
|
90
94
|
"tshy": {
|
|
91
95
|
"exclude": [
|
|
@@ -135,5 +139,5 @@
|
|
|
135
139
|
"access": "public"
|
|
136
140
|
},
|
|
137
141
|
"module": "./dist/esm/index.js",
|
|
138
|
-
"gitHead": "
|
|
142
|
+
"gitHead": "737b2300a34f8ed29a0b77e02b3f6eeda58ec439"
|
|
139
143
|
}
|