roxify 1.9.7 → 1.9.8

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/Cargo.toml CHANGED
@@ -1,6 +1,6 @@
1
1
  [package]
2
2
  name = "roxify_native"
3
- version = "1.9.7"
3
+ version = "1.9.8"
4
4
  edition = "2021"
5
5
  publish = false
6
6
 
@@ -349,7 +349,7 @@ pub fn crop_and_reconstitute(png_data: &[u8]) -> Result<Vec<u8>, String> {
349
349
  // Filtre : la zone encodée NN a des blocs monochromes → intra très bas
350
350
  // Zone de fond aléatoire → intra ≈ lw × n_scan × 0.99 >> 0
351
351
  // Seuil : lw/8 × n_scan pour permettre ≈ lw/8 pixels parasites
352
- let intra_threshold = ((lw as u32 / 4 + 2) * n_scan).max(n_scan * 3);
352
+ let intra_threshold = ((lw as u32 / 2 + 3) * n_scan).max(n_scan * 3);
353
353
 
354
354
  if intra_final > intra_threshold {
355
355
  continue;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "roxify",
3
- "version": "1.9.7",
3
+ "version": "1.9.8",
4
4
  "type": "module",
5
5
  "description": "Ultra-lightweight PNG steganography with native Rust acceleration. Encode binary data into PNG images with zstd compression.",
6
6
  "main": "dist/index.js",