@blazediff/cli 2.0.4 → 2.0.5

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
@@ -58,7 +58,6 @@ blazediff-cli core image1.png image2.png [options]
58
58
  - `--diff-color-alt <r,g,b>` - Alternative color for dark differences
59
59
  - `--include-aa` - Include anti-aliasing detection
60
60
  - `--diff-mask` - Draw diff over transparent background
61
- - `--color-space <name>` - Specify color space to use (yiq, ycbcr)
62
61
  - `--transformer <name>` - Specify transformer to use (pngjs, sharp)
63
62
  - `-h, --help` - Show help message
64
63
 
package/dist/cli.js CHANGED
@@ -8930,7 +8930,6 @@ Options:
8930
8930
  --diff-color-alt <r,g,b> Alternative color for dark differences (default: same as diff-color)
8931
8931
  --include-aa Include anti-aliasing detection
8932
8932
  --diff-mask Draw diff over transparent background
8933
- --color-space <name> Specify color space to use (e.g. yiq, ycbcr)
8934
8933
  --transformer <name> Specify transformer to use (e.g. pngjs, sharp)
8935
8934
  -h, --help Show this help message
8936
8935
 
@@ -9022,12 +9021,6 @@ async function main2() {
9022
9021
  i2++;
9023
9022
  }
9024
9023
  break;
9025
- case "--color-space":
9026
- if (nextArg) {
9027
- options.colorSpace = nextArg;
9028
- i2++;
9029
- }
9030
- break;
9031
9024
  default:
9032
9025
  console.error(`Unknown option: ${arg}`);
9033
9026
  printUsage2();
@@ -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.0.5",
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.1.1",
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 };