Skip to content

[Feature]: Option to downsample output image resolution (DPI) #1698

Description

@jbarlow83

Split from #1651.

Allow forcing output images to a lower resolution/DPI when the input was scanned at an excessively high DPI.

Important nuance on why (and why this is not primarily a file-size feature): aggressive lossy compression (JPEG/JPEG2000 quality) already behaves like a "smart" downsampling — it allocates bits where detail exists — and generally gives better quality for the same bit budget than uniformly reducing DPI. Most users should set their optimization to a more aggressive setting instead of downsampling, which is why it wasn't implemented yet.

The real benefit of capping DPI is reducing memory and processing cost when the input DPI is excessive (very large pixel dimensions), plus producing sensibly-sized images for downstream consumers.

Current state: only --oversample (an upsample floor for the OCR input) and --ghostscript-jpeg-maxdpi (PDF/A path only) exist; there is no general "downsample output to N DPI."

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions