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.
@@ -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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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";
@@ -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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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, { colors, colorDistanceFormula, paletteQuantization, imageQuantization, }: quantize.QuantizeOptions): 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.2",
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.2",
40
- "@jimp/diff": "1.1.2",
41
- "@jimp/js-bmp": "1.1.2",
42
- "@jimp/js-gif": "1.1.2",
43
- "@jimp/js-jpeg": "1.1.2",
44
- "@jimp/js-png": "1.1.2",
45
- "@jimp/js-tiff": "1.1.2",
46
- "@jimp/plugin-blit": "1.1.2",
47
- "@jimp/plugin-blur": "1.1.2",
48
- "@jimp/plugin-circle": "1.1.2",
49
- "@jimp/plugin-color": "1.1.2",
50
- "@jimp/plugin-contain": "1.1.2",
51
- "@jimp/plugin-cover": "1.1.2",
52
- "@jimp/plugin-crop": "1.1.2",
53
- "@jimp/plugin-displace": "1.1.2",
54
- "@jimp/plugin-dither": "1.1.2",
55
- "@jimp/plugin-fisheye": "1.1.2",
56
- "@jimp/plugin-flip": "1.1.2",
57
- "@jimp/plugin-hash": "1.1.2",
58
- "@jimp/plugin-mask": "1.1.2",
59
- "@jimp/plugin-print": "1.1.2",
60
- "@jimp/plugin-quantize": "1.1.2",
61
- "@jimp/plugin-resize": "1.1.2",
62
- "@jimp/plugin-rotate": "1.1.2",
63
- "@jimp/plugin-threshold": "1.1.2",
64
- "@jimp/types": "1.1.2",
65
- "@jimp/utils": "1.1.2"
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.2",
69
- "@jimp/config-typescript": "1.1.2",
70
- "@jimp/config-vitest": "1.1.2",
71
- "@jimp/test-utils": "1.1.2",
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": "^25.0.7",
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": "^1.4.0",
78
- "eslint": "^8.57.0",
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.14.1",
82
- "rollup-plugin-dts": "^6.1.0",
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.21.0",
88
- "vitest": "^1.4.0"
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": "ba9de4df25a2f0e41f11a68c7aa50181a52115cb"
142
+ "gitHead": "737b2300a34f8ed29a0b77e02b3f6eeda58ec439"
139
143
  }