@blazediff/cli 2.1.3 → 2.1.4
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 +5 -5
- package/dist/cli.js +847 -726
- package/dist/commands/{bin.js → core-native.js} +10 -10
- package/dist/commands/core.js +830 -709
- package/dist/commands/gmsd.js +830 -709
- package/dist/commands/hitchhikers-ssim.js +830 -709
- package/dist/commands/msssim.js +830 -709
- package/dist/commands/ssim.js +830 -709
- package/dist/index.d.ts +2 -2
- package/package.json +4 -4
|
@@ -18,16 +18,16 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
18
18
|
};
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
|
-
// src/commands/
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
21
|
+
// src/commands/core-native.ts
|
|
22
|
+
var core_native_exports = {};
|
|
23
|
+
__export(core_native_exports, {
|
|
24
24
|
default: () => main
|
|
25
25
|
});
|
|
26
|
-
module.exports = __toCommonJS(
|
|
27
|
-
var
|
|
26
|
+
module.exports = __toCommonJS(core_native_exports);
|
|
27
|
+
var import_core_native = require("@blazediff/core-native");
|
|
28
28
|
function printUsage() {
|
|
29
29
|
console.log(`
|
|
30
|
-
Usage: blazediff-cli
|
|
30
|
+
Usage: blazediff-cli core-native <image1> <image2> <output> [options]
|
|
31
31
|
|
|
32
32
|
Arguments:
|
|
33
33
|
image1 Path to the first image
|
|
@@ -42,9 +42,9 @@ Options:
|
|
|
42
42
|
-h, --help Show this help message
|
|
43
43
|
|
|
44
44
|
Examples:
|
|
45
|
-
blazediff-cli
|
|
46
|
-
blazediff-cli
|
|
47
|
-
blazediff-cli
|
|
45
|
+
blazediff-cli core-native image1.png image2.png diff.png
|
|
46
|
+
blazediff-cli core-native image1.png image2.png diff.png -t 0.05 -a
|
|
47
|
+
blazediff-cli core-native image1.png image2.png diff.png --threshold 0.2 --antialiasing
|
|
48
48
|
`);
|
|
49
49
|
}
|
|
50
50
|
async function main() {
|
|
@@ -107,7 +107,7 @@ async function main() {
|
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
const startTime = performance.now();
|
|
110
|
-
const result = await (0,
|
|
110
|
+
const result = await (0, import_core_native.compare)(image1, image2, output, options);
|
|
111
111
|
const duration = performance.now() - startTime;
|
|
112
112
|
console.log(`completed in: ${duration.toFixed(2)}ms`);
|
|
113
113
|
if (result.match) {
|