@blazediff/bin 3.4.0 → 3.5.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 +12 -5
- package/package.json +7 -7
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
The fastest single-threaded image diff in the world. Native Rust implementation with SIMD optimization, **3-4x faster** and **3x smaller** than [odiff](https://github.com/dmtrKovalenko/odiff).
|
|
12
12
|
|
|
13
13
|
**Features:**
|
|
14
|
-
- **PNG &
|
|
14
|
+
- **PNG, JPEG & QOI support** - auto-detected by file extension
|
|
15
15
|
- SIMD-accelerated (NEON on ARM, SSE4.1 on x86)
|
|
16
16
|
- Block-based two-pass optimization
|
|
17
17
|
- YIQ perceptual color difference
|
|
@@ -21,6 +21,7 @@ The fastest single-threaded image diff in the world. Native Rust implementation
|
|
|
21
21
|
**Vendored Libraries:**
|
|
22
22
|
- [libspng](https://libspng.org/) - Fast PNG decoding/encoding with SIMD
|
|
23
23
|
- [libjpeg-turbo](https://libjpeg-turbo.org/) - High-performance JPEG codec with SIMD
|
|
24
|
+
- [qoi](https://github.com/aldanor/qoi-rust) - QOI (Quite OK Image) format for fast lossless compression
|
|
24
25
|
|
|
25
26
|
## Installation
|
|
26
27
|
|
|
@@ -141,8 +142,11 @@ npx blazediff expected.png actual.png diff.png
|
|
|
141
142
|
# Compare two JPEG images
|
|
142
143
|
npx blazediff expected.jpg actual.jpg diff.jpg
|
|
143
144
|
|
|
144
|
-
#
|
|
145
|
-
npx blazediff expected.
|
|
145
|
+
# Compare two QOI images
|
|
146
|
+
npx blazediff expected.qoi actual.qoi diff.qoi
|
|
147
|
+
|
|
148
|
+
# Mixed formats (PNG input, QOI output - recommended for smallest diff files)
|
|
149
|
+
npx blazediff expected.png actual.png diff.qoi
|
|
146
150
|
|
|
147
151
|
# With options
|
|
148
152
|
npx blazediff expected.png actual.png diff.png --threshold 0.05 --antialiasing
|
|
@@ -163,8 +167,8 @@ npx blazediff expected.png actual.png diff.png --output-format json
|
|
|
163
167
|
Usage: blazediff [OPTIONS] <IMAGE1> <IMAGE2> [OUTPUT]
|
|
164
168
|
|
|
165
169
|
Arguments:
|
|
166
|
-
<IMAGE1> First image path (PNG or
|
|
167
|
-
<IMAGE2> Second image path (PNG or
|
|
170
|
+
<IMAGE1> First image path (PNG, JPEG, or QOI)
|
|
171
|
+
<IMAGE2> Second image path (PNG, JPEG, or QOI)
|
|
168
172
|
[OUTPUT] Output diff image path (optional, format detected from extension)
|
|
169
173
|
|
|
170
174
|
Options:
|
|
@@ -184,9 +188,12 @@ Options:
|
|
|
184
188
|
|--------|------------|-------|
|
|
185
189
|
| PNG | `.png` | Lossless, supports transparency |
|
|
186
190
|
| JPEG | `.jpg`, `.jpeg` | Lossy, smaller file sizes |
|
|
191
|
+
| QOI | `.qoi` | Fast lossless, ideal for diff outputs (12x smaller than uncompressed PNG) |
|
|
187
192
|
|
|
188
193
|
Input images can be mixed formats (e.g., compare PNG to JPEG). Output format is determined by the output file extension.
|
|
189
194
|
|
|
195
|
+
**QOI for diff outputs:** QOI excels at encoding diff images with large uniform areas, producing files 12x smaller than PNG (level 0) while being faster to encode.
|
|
196
|
+
|
|
190
197
|
### Exit Codes
|
|
191
198
|
|
|
192
199
|
- `0` - Images are identical
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blazediff/bin",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.5.0",
|
|
4
4
|
"description": "Native Rust binaries for blazediff - the fastest image diff in the world",
|
|
5
5
|
"private": false,
|
|
6
6
|
"publishConfig": {
|
|
@@ -20,12 +20,12 @@
|
|
|
20
20
|
"dist"
|
|
21
21
|
],
|
|
22
22
|
"optionalDependencies": {
|
|
23
|
-
"@blazediff/bin-darwin-arm64": "3.
|
|
24
|
-
"@blazediff/bin-darwin-x64": "3.
|
|
25
|
-
"@blazediff/bin-linux-arm64": "3.
|
|
26
|
-
"@blazediff/bin-linux-x64": "3.
|
|
27
|
-
"@blazediff/bin-win32-arm64": "3.
|
|
28
|
-
"@blazediff/bin-win32-x64": "3.
|
|
23
|
+
"@blazediff/bin-darwin-arm64": "3.5.0",
|
|
24
|
+
"@blazediff/bin-darwin-x64": "3.5.0",
|
|
25
|
+
"@blazediff/bin-linux-arm64": "3.5.0",
|
|
26
|
+
"@blazediff/bin-linux-x64": "3.5.0",
|
|
27
|
+
"@blazediff/bin-win32-arm64": "3.5.0",
|
|
28
|
+
"@blazediff/bin-win32-x64": "3.5.0"
|
|
29
29
|
},
|
|
30
30
|
"keywords": [
|
|
31
31
|
"image",
|