djvu-rs 0.30.2 → 0.31.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 CHANGED
@@ -199,8 +199,13 @@ Layered `quality` / `archival` encodes default to fixed BT.601 thresholding.
199
199
  `--binarization sauvola` opts into adaptive local thresholding for mixed or
200
200
  uneven lighting; tune it with `--sauvola-window` and `--sauvola-k`.
201
201
  `--bg-inpaint` fills fully masked background blocks from neighbouring unmasked
202
- pixels, which can reduce dark boxes under heavy text strokes. These knobs are
203
- opt-in, only affect layered profiles, and do not change lossless JB2 defaults.
202
+ pixels, which can reduce dark boxes under heavy text strokes.
203
+ `--block-classify` routes photo and halftone blocks wholly to the background
204
+ layer instead of shredding them into mask speckle (mixed text+photo layouts);
205
+ pair it with `--adaptive-bg-subsample`, which densifies the background grid
206
+ where unmasked detail warrants it, so routed photos keep their detail. These
207
+ knobs are opt-in, only affect layered profiles, and do not change lossless
208
+ JB2 defaults.
204
209
  Library callers can use the same controls with `PageEncoder::with_segment_options`.
205
210
  For newly encoded pages, `PageEncoder::with_metadata` emits a `METz` chunk;
206
211
  for existing documents, `DjVuDocumentMut::page_mut(...).set_metadata(...)`
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "djvu-rs",
3
3
  "type": "module",
4
4
  "description": "Read, render, convert, and create DjVu files. Pure-Rust DjVu decoder/encoder with CLI, WebAssembly, and Python bindings. DjVu to PDF, EPUB, TIFF, PNG, and text. MIT licensed, no GPL dependencies.",
5
- "version": "0.30.2",
5
+ "version": "0.31.0",
6
6
  "license": "MIT",
7
7
  "repository": {
8
8
  "type": "git",
package/scalar/README.md CHANGED
@@ -199,8 +199,13 @@ Layered `quality` / `archival` encodes default to fixed BT.601 thresholding.
199
199
  `--binarization sauvola` opts into adaptive local thresholding for mixed or
200
200
  uneven lighting; tune it with `--sauvola-window` and `--sauvola-k`.
201
201
  `--bg-inpaint` fills fully masked background blocks from neighbouring unmasked
202
- pixels, which can reduce dark boxes under heavy text strokes. These knobs are
203
- opt-in, only affect layered profiles, and do not change lossless JB2 defaults.
202
+ pixels, which can reduce dark boxes under heavy text strokes.
203
+ `--block-classify` routes photo and halftone blocks wholly to the background
204
+ layer instead of shredding them into mask speckle (mixed text+photo layouts);
205
+ pair it with `--adaptive-bg-subsample`, which densifies the background grid
206
+ where unmasked detail warrants it, so routed photos keep their detail. These
207
+ knobs are opt-in, only affect layered profiles, and do not change lossless
208
+ JB2 defaults.
204
209
  Library callers can use the same controls with `PageEncoder::with_segment_options`.
205
210
  For newly encoded pages, `PageEncoder::with_metadata` emits a `METz` chunk;
206
211
  for existing documents, `DjVuDocumentMut::page_mut(...).set_metadata(...)`
package/scalar/djvu_rs.js CHANGED
@@ -479,29 +479,29 @@ if (Symbol.dispose) WasmPixmap.prototype[Symbol.dispose] = WasmPixmap.prototype.
479
479
  function __wbg_get_imports() {
480
480
  const import0 = {
481
481
  __proto__: null,
482
- __wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
482
+ __wbg_Error_67e7344beaa85059: function(arg0, arg1) {
483
483
  const ret = Error(getStringFromWasm0(arg0, arg1));
484
484
  return ret;
485
485
  },
486
- __wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
486
+ __wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
487
487
  throw new Error(getStringFromWasm0(arg0, arg1));
488
488
  },
489
- __wbg_length_13032799523c5735: function(arg0) {
489
+ __wbg_length_ff98c95d19109ba4: function(arg0) {
490
490
  const ret = arg0.length;
491
491
  return ret;
492
492
  },
493
- __wbg_new_with_length_5d351ffdb6e3397d: function(arg0) {
493
+ __wbg_new_with_length_ac9c609232fb2d1d: function(arg0) {
494
494
  const ret = new Uint8ClampedArray(arg0 >>> 0);
495
495
  return ret;
496
496
  },
497
- __wbg_set_5c15d3c5973de97a: function(arg0, arg1, arg2) {
497
+ __wbg_set_0488601468e80715: function(arg0, arg1, arg2) {
498
498
  arg0.set(getArrayU8FromWasm0(arg1, arg2));
499
499
  },
500
500
  __wbg_wasmpixmap_new: function(arg0) {
501
501
  const ret = WasmPixmap.__wrap(arg0);
502
502
  return ret;
503
503
  },
504
- __wbindgen_cast_0000000000000001: function(arg0, arg1) {
504
+ __wbindgen_generic_0000000000000001: function(arg0, arg1) {
505
505
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8ClampedArray")`.
506
506
  const ret = getArrayU8FromWasm0(arg0, arg1);
507
507
  return ret;
Binary file
package/simd128/README.md CHANGED
@@ -199,8 +199,13 @@ Layered `quality` / `archival` encodes default to fixed BT.601 thresholding.
199
199
  `--binarization sauvola` opts into adaptive local thresholding for mixed or
200
200
  uneven lighting; tune it with `--sauvola-window` and `--sauvola-k`.
201
201
  `--bg-inpaint` fills fully masked background blocks from neighbouring unmasked
202
- pixels, which can reduce dark boxes under heavy text strokes. These knobs are
203
- opt-in, only affect layered profiles, and do not change lossless JB2 defaults.
202
+ pixels, which can reduce dark boxes under heavy text strokes.
203
+ `--block-classify` routes photo and halftone blocks wholly to the background
204
+ layer instead of shredding them into mask speckle (mixed text+photo layouts);
205
+ pair it with `--adaptive-bg-subsample`, which densifies the background grid
206
+ where unmasked detail warrants it, so routed photos keep their detail. These
207
+ knobs are opt-in, only affect layered profiles, and do not change lossless
208
+ JB2 defaults.
204
209
  Library callers can use the same controls with `PageEncoder::with_segment_options`.
205
210
  For newly encoded pages, `PageEncoder::with_metadata` emits a `METz` chunk;
206
211
  for existing documents, `DjVuDocumentMut::page_mut(...).set_metadata(...)`
@@ -479,29 +479,29 @@ if (Symbol.dispose) WasmPixmap.prototype[Symbol.dispose] = WasmPixmap.prototype.
479
479
  function __wbg_get_imports() {
480
480
  const import0 = {
481
481
  __proto__: null,
482
- __wbg_Error_408e67f47ca7b58b: function(arg0, arg1) {
482
+ __wbg_Error_67e7344beaa85059: function(arg0, arg1) {
483
483
  const ret = Error(getStringFromWasm0(arg0, arg1));
484
484
  return ret;
485
485
  },
486
- __wbg___wbindgen_throw_bb96b2010945f0bc: function(arg0, arg1) {
486
+ __wbg___wbindgen_throw_5d9e815e6fdf150f: function(arg0, arg1) {
487
487
  throw new Error(getStringFromWasm0(arg0, arg1));
488
488
  },
489
- __wbg_length_13032799523c5735: function(arg0) {
489
+ __wbg_length_ff98c95d19109ba4: function(arg0) {
490
490
  const ret = arg0.length;
491
491
  return ret;
492
492
  },
493
- __wbg_new_with_length_5d351ffdb6e3397d: function(arg0) {
493
+ __wbg_new_with_length_ac9c609232fb2d1d: function(arg0) {
494
494
  const ret = new Uint8ClampedArray(arg0 >>> 0);
495
495
  return ret;
496
496
  },
497
- __wbg_set_5c15d3c5973de97a: function(arg0, arg1, arg2) {
497
+ __wbg_set_0488601468e80715: function(arg0, arg1, arg2) {
498
498
  arg0.set(getArrayU8FromWasm0(arg1, arg2));
499
499
  },
500
500
  __wbg_wasmpixmap_new: function(arg0) {
501
501
  const ret = WasmPixmap.__wrap(arg0);
502
502
  return ret;
503
503
  },
504
- __wbindgen_cast_0000000000000001: function(arg0, arg1) {
504
+ __wbindgen_generic_0000000000000001: function(arg0, arg1) {
505
505
  // Cast intrinsic for `Ref(Slice(U8)) -> NamedExternref("Uint8ClampedArray")`.
506
506
  const ret = getArrayU8FromWasm0(arg0, arg1);
507
507
  return ret;
Binary file