[gscan2pdf-announce] scantpaper v4.1.0 released
Discontinued. Moved to https://github.com/carygravel/scantpaper
Brought to you by:
ra28145
|
From: Jeff <jf...@po...> - 2026-12-05 16:37:42
|
Changes compared to v4.0.5: * The configuration file can now be chosen with `--config-file <path>`, so a packaged installation, a source checkout and a test configuration can each keep their own settings. A leading `~` is expanded and a relative path is resolved against the current directory. The selected file is created if it does not exist, and a missing parent directory is reported as an error. The backup of an unreadable file is written next to the selected file, and the legacy `gscan2pdfrc` import applies only to the default location. * Low-colour colour pages, such as forms printed in one or two spot colours with black type and pen marks, are now saved as indexed- palette Flate images when that is smaller than JPEG under **Automatic** compression. The palette keeps distinct spot colours, is capped at 16 colours, and uses a 1- or 2-bit index when the page has only two or four colours. A page with 16 or fewer distinct colours also falls back to JPEG when that is smaller. Continuous-tone photographs and pages with a photographic inset still use JPEG, a page already reduced to a palette is passed through unchanged, downsampling keeps the page's own colour count, and the 2 GiB save estimate uses the encoded palette size. On a scanned 300 dpi business form this reduces a 595 KB JPEG page to about 176 KB in the final PDF/A. * **Tools → Reduce Colours** reduces the selected or all pages to a chosen number of colours from 2 to 16 (default 16). The reduction is destructive but undoable as one step, keeps the text layer and annotations, and skips transparent, CMYK and bilevel pages. The reduced page is stored as a palette PNG, so the result survives a session reload and is embedded without further loss. Fewer colours make smaller PDFs; 2, 4 and 16 are the efficient choices. Significant spot colours, such as a small logo or stamp, are reserved in the palette instead of being mapped to grey; paper and dark ink take priority at the lowest colour counts. Automatic palette compression applies the same reservation and falls back to JPEG when no palette size up to 16 can hold every spot colour or when the palette stream is larger. **Brightness / Contrast** and **Unsharp Mask** now accept palette and bilevel pages by converting them to RGB first. * The optional `--log` file is now compressed to gzip (`log.gz`) instead of xz on exit, so it can be attached directly to a GitHub issue. The logging handlers are now closed before compression, so the archive always contains the last records and the plain file is removed reliably. * Interlingue translation thanks to Silvara * Updated Russian translation thanks to Silvara Available on Github: https://github.com/carygravel/scantpaper/releases/tag/v4.1.0 Or via the PPA: https://launchpad.net/~jeffreyratcliffe/+archive/ubuntu/ppa |