@blazediff/cli 4.0.4 → 5.0.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.
@@ -39,15 +39,14 @@ Options:
39
39
  -a, --antialiasing Enable anti-aliasing detection
40
40
  --diff-mask Output only differences (transparent background)
41
41
  -c, --compression <num> PNG compression level (0-9, default: 0)
42
- --interpret Run structured interpretation (region detection + classification)
43
- --output-format <fmt> Output format: png (default) or html (interpret report)
44
42
  -h, --help Show this help message
45
43
 
46
44
  Examples:
47
45
  blazediff-cli core-native image1.png image2.png diff.png
48
46
  blazediff-cli core-native image1.png image2.png diff.png -t 0.05 -a
49
- blazediff-cli core-native image1.png image2.png --interpret
50
- blazediff-cli core-native image1.png image2.png report.html --output-format html
47
+
48
+ For region analysis of what changed, use the interpret command:
49
+ blazediff-cli interpret image1.png image2.png
51
50
  `);
52
51
  }
53
52
  async function main() {
@@ -108,9 +107,6 @@ async function main() {
108
107
  i++;
109
108
  }
110
109
  break;
111
- case "--interpret":
112
- options.interpret = true;
113
- break;
114
110
  default:
115
111
  console.error(`Unknown option: ${arg}`);
116
112
  printUsage();
@@ -118,17 +114,6 @@ async function main() {
118
114
  }
119
115
  }
120
116
  const startTime = performance.now();
121
- if (options.interpret && !output) {
122
- const result2 = await (0, import_core_native.interpret)(image1, image2, {
123
- threshold: options.threshold,
124
- antialiasing: options.antialiasing
125
- });
126
- const duration2 = performance.now() - startTime;
127
- console.log(`completed in: ${duration2.toFixed(2)}ms`);
128
- console.log(JSON.stringify(result2, null, 2));
129
- process.exit(result2.diffPercentage === 0 ? 0 : 1);
130
- return;
131
- }
132
117
  const result = await (0, import_core_native.compare)(image1, image2, output, options);
133
118
  const duration = performance.now() - startTime;
134
119
  console.log(`completed in: ${duration.toFixed(2)}ms`);
@@ -150,9 +135,6 @@ async function main() {
150
135
  if (output) {
151
136
  console.log(`diff output: ${output}`);
152
137
  }
153
- if ("interpretation" in result && result.interpretation) {
154
- console.log(JSON.stringify(result.interpretation, null, 2));
155
- }
156
138
  process.exit(1);
157
139
  }
158
140
  } catch (error) {