@blazediff/cli 2.0.4 → 2.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/README.md CHANGED
@@ -38,7 +38,6 @@ blazediff-cli bin image1.png image2.png diff.png [options]
38
38
  - `-t, --threshold <num>` - Color difference threshold (0 to 1, default: 0.1)
39
39
  - `-a, --antialiasing` - Enable anti-aliasing detection
40
40
  - `--diff-mask` - Output only differences (transparent background)
41
- - `--fail-on-layout` - Fail immediately if images have different dimensions
42
41
  - `-c, --compression <num>` - PNG compression level (0-9, default: 0)
43
42
  - `-h, --help` - Show help message
44
43
 
@@ -58,7 +57,6 @@ blazediff-cli core image1.png image2.png [options]
58
57
  - `--diff-color-alt <r,g,b>` - Alternative color for dark differences
59
58
  - `--include-aa` - Include anti-aliasing detection
60
59
  - `--diff-mask` - Draw diff over transparent background
61
- - `--color-space <name>` - Specify color space to use (yiq, ycbcr)
62
60
  - `--transformer <name>` - Specify transformer to use (pngjs, sharp)
63
61
  - `-h, --help` - Show help message
64
62
 
package/dist/cli.js CHANGED
@@ -51,7 +51,6 @@ Options:
51
51
  -t, --threshold <num> Color difference threshold (0 to 1, default: 0.1)
52
52
  -a, --antialiasing Enable anti-aliasing detection
53
53
  --diff-mask Output only differences (transparent background)
54
- --fail-on-layout Fail immediately if images have different dimensions
55
54
  -c, --compression <num> PNG compression level (0-9, default: 0)
56
55
  -h, --help Show this help message
57
56
 
@@ -101,9 +100,6 @@ async function main() {
101
100
  case "--diff-mask":
102
101
  options.diffMask = true;
103
102
  break;
104
- case "--fail-on-layout":
105
- options.failOnLayoutDiff = true;
106
- break;
107
103
  case "-c":
108
104
  case "--compression":
109
105
  if (nextArg) {
@@ -8930,7 +8926,6 @@ Options:
8930
8926
  --diff-color-alt <r,g,b> Alternative color for dark differences (default: same as diff-color)
8931
8927
  --include-aa Include anti-aliasing detection
8932
8928
  --diff-mask Draw diff over transparent background
8933
- --color-space <name> Specify color space to use (e.g. yiq, ycbcr)
8934
8929
  --transformer <name> Specify transformer to use (e.g. pngjs, sharp)
8935
8930
  -h, --help Show this help message
8936
8931
 
@@ -9022,12 +9017,6 @@ async function main2() {
9022
9017
  i2++;
9023
9018
  }
9024
9019
  break;
9025
- case "--color-space":
9026
- if (nextArg) {
9027
- options.colorSpace = nextArg;
9028
- i2++;
9029
- }
9030
- break;
9031
9020
  default:
9032
9021
  console.error(`Unknown option: ${arg}`);
9033
9022
  printUsage2();
@@ -38,7 +38,6 @@ Options:
38
38
  -t, --threshold <num> Color difference threshold (0 to 1, default: 0.1)
39
39
  -a, --antialiasing Enable anti-aliasing detection
40
40
  --diff-mask Output only differences (transparent background)
41
- --fail-on-layout Fail immediately if images have different dimensions
42
41
  -c, --compression <num> PNG compression level (0-9, default: 0)
43
42
  -h, --help Show this help message
44
43
 
@@ -88,9 +87,6 @@ async function main() {
88
87
  case "--diff-mask":
89
88
  options.diffMask = true;
90
89
  break;
91
- case "--fail-on-layout":
92
- options.failOnLayoutDiff = true;
93
- break;
94
90
  case "-c":
95
91
  case "--compression":
96
92
  if (nextArg) {
@@ -8797,7 +8797,6 @@ Options:
8797
8797
  --diff-color-alt <r,g,b> Alternative color for dark differences (default: same as diff-color)
8798
8798
  --include-aa Include anti-aliasing detection
8799
8799
  --diff-mask Draw diff over transparent background
8800
- --color-space <name> Specify color space to use (e.g. yiq, ycbcr)
8801
8800
  --transformer <name> Specify transformer to use (e.g. pngjs, sharp)
8802
8801
  -h, --help Show this help message
8803
8802
 
@@ -8900,12 +8899,6 @@ async function main() {
8900
8899
  i2++;
8901
8900
  }
8902
8901
  break;
8903
- case "--color-space":
8904
- if (nextArg) {
8905
- options.colorSpace = nextArg;
8906
- i2++;
8907
- }
8908
- break;
8909
8902
  default:
8910
8903
  console.error(`Unknown option: ${arg}`);
8911
8904
  printUsage();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blazediff/cli",
3
- "version": "2.0.4",
3
+ "version": "2.1.0",
4
4
  "description": "Command-line interface for the blazediff image comparison library",
5
5
  "private": false,
6
6
  "publishConfig": {
@@ -37,12 +37,12 @@
37
37
  "homepage": "https://blazediff.dev",
38
38
  "license": "MIT",
39
39
  "dependencies": {
40
- "@blazediff/bin": "3.1.0",
41
- "@blazediff/core": "1.9.0",
42
- "@blazediff/gmsd": "1.7.0",
43
- "@blazediff/pngjs-transformer": "2.1.0",
44
- "@blazediff/sharp-transformer": "2.0.0",
45
- "@blazediff/ssim": "1.7.0"
40
+ "@blazediff/bin": "3.2.0",
41
+ "@blazediff/core": "1.9.1",
42
+ "@blazediff/gmsd": "1.7.1",
43
+ "@blazediff/pngjs-transformer": "2.1.1",
44
+ "@blazediff/sharp-transformer": "2.0.1",
45
+ "@blazediff/ssim": "1.7.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@types/node": "^24.3.0",
package/dist/index.d.mts DELETED
@@ -1,69 +0,0 @@
1
- interface Image {
2
- data: Buffer | Uint8Array | Uint8ClampedArray;
3
- width: number;
4
- height: number;
5
- }
6
- interface Transformer {
7
- read: (input: string | Buffer) => Promise<Image>;
8
- write: (image: Image, output: string | Buffer) => Promise<void>;
9
- }
10
- type ComparisonMode = "diff" | "gmsd" | "ssim" | "msssim";
11
- interface DiffModeOptions {
12
- outputPath?: string;
13
- transformer: Transformer;
14
- mode?: "diff";
15
- options?: Record<string, unknown>;
16
- }
17
- interface GmsdModeOptions {
18
- outputPath?: string;
19
- transformer: Transformer;
20
- mode: "gmsd";
21
- options?: Record<string, unknown>;
22
- }
23
- interface SsimModeOptions {
24
- outputPath?: string;
25
- transformer: Transformer;
26
- mode: "ssim";
27
- options?: Record<string, unknown>;
28
- }
29
- interface MsssimModeOptions {
30
- outputPath?: string;
31
- transformer: Transformer;
32
- mode: "msssim";
33
- options?: Record<string, unknown>;
34
- }
35
- interface DiffModeResult {
36
- mode: "diff";
37
- diffCount: number;
38
- width: number;
39
- height: number;
40
- outputData?: Uint8Array;
41
- duration: number;
42
- }
43
- interface GmsdModeResult {
44
- mode: "gmsd";
45
- score: number;
46
- width: number;
47
- height: number;
48
- outputData?: Uint8Array;
49
- duration: number;
50
- }
51
- interface SsimModeResult {
52
- mode: "ssim";
53
- score: number;
54
- width: number;
55
- height: number;
56
- outputData?: Uint8Array;
57
- duration: number;
58
- }
59
- interface MsssimModeResult {
60
- mode: "msssim";
61
- score: number;
62
- width: number;
63
- height: number;
64
- outputData?: Uint8Array;
65
- duration: number;
66
- }
67
- type BlazeDiffBinResult = DiffModeResult | GmsdModeResult | SsimModeResult | MsssimModeResult;
68
-
69
- export type { BlazeDiffBinResult, ComparisonMode, DiffModeOptions, DiffModeResult, GmsdModeOptions, GmsdModeResult, Image, MsssimModeOptions, MsssimModeResult, SsimModeOptions, SsimModeResult, Transformer };