Reference

scantailor-cli(1)

a post-processing tool for scanned pages

NAME

scantailor-cli - a post-processing tool for scanned pages

SYNOPSIS

scantailor-cli [options] <images|directory|-> <output_directory>
scantailor-cli [options] <project_file> [output_directory]

DESCRIPTION

scantailor is a post-processing tool for scanned pages. It performs operations such as page splitting, deskewing, adding/removing borders, and others. You give it raw scans, and you get pages ready to be printed or assembled into a PDF or DJVU file. Scanning, optical character recognition, and assembling multi-page documents are out of scope of this project.

File names are collected from arguments, input directory, or stdin (-). If output_directory is specified as the last argument, it overwrites the one in the project file.

OPTIONS

-h, --help
-v, --verbose
-l, --layout=<0|1|1.5|2>
0:auto detect [default]
1:one page layout
1.5:one page layout but cutting is needed
2:two page layout
-ld, --layout-direction=<lr|rl>

default: lr

--orientation=<left|right|upsidedown|none>

default: none

--rotate=<0.0...360.0>

also sets deskew to manual mode

--deskew=<auto|manual>

default: auto

--content-detection=<cautious|normal|aggressive>

default: normal

--content-box=<<left_offset>x<top_offset>:<width>x<height>>

if set the content detection is set to manual mode
example: --content-box=100x100:1500x2500

--margins=<number>

sets left, top, right and bottom margins to same number.

--margins-left=<number>
--margins-right=<number>
--margins-top=<number>
--margins-bottom=<number>
--alignment=center

sets vertical and horizontal alignment to center

--alignment-vertical=<top|center|bottom>
--alignment-horizontal=<left|center|right>
--dpi=<number>

sets x and y dpi. default: 600

--dpi-x=<number>
--dpi-y=<number>
--output-dpi=<number>

sets x and y output dpi. default: 600

--output-dpi-x=<number>
--output-dpi-y=<number>
--color-mode=<black_and_white|color_grayscale|mixed>

default: black_and_white

--white-margins

default: false

--normalize-illumination

default: false

--threshold=<n>

n<0 thinner
n>0 thicker
default: 0

--despeckle=<off|cautious|normal|aggressive>

default: normal

--dewarping=<off|auto>

default: off

--depth-perception=<1.0...3.0>

default: 2.0

--start-filter=<1...6>

default: 4

--end-filter=<1...6>

default: 6

-o, --output-project=<project_name>

SEE ALSO

scantailor(1)
Scan Tailor Wiki: https://github.com/scantailor/scantailor/wiki

AUTHOR

scantailor was written by Joseph Artsimovich <[email protected]>

History

--alignment since Debian 9 (Stretch); --alignment-horizontal since Debian 9 (Stretch); --alignment-vertical since Debian 9 (Stretch); --color-mode since Debian 9 (Stretch); --content-box since Debian 9 (Stretch); --content-detection since Debian 9 (Stretch); --depth-perception since Debian 9 (Stretch); --deskew since Debian 9 (Stretch); --despeckle since Debian 9 (Stretch); --dewarping since Debian 9 (Stretch); --dpi since Debian 9 (Stretch); --dpi-x since Debian 9 (Stretch); --dpi-y since Debian 9 (Stretch); --end-filter since Debian 9 (Stretch); --help since Debian 9 (Stretch); --layout since Debian 9 (Stretch); --layout-direction since Debian 9 (Stretch); --margins since Debian 9 (Stretch); --margins-bottom since Debian 9 (Stretch); --margins-left since Debian 9 (Stretch); --margins-right since Debian 9 (Stretch); --margins-top since Debian 9 (Stretch); --normalize-illumination since Debian 9 (Stretch); --orientation since Debian 9 (Stretch); --output-dpi since Debian 9 (Stretch); --output-dpi-x since Debian 9 (Stretch); --output-dpi-y since Debian 9 (Stretch); --output-project since Debian 9 (Stretch); --rotate since Debian 9 (Stretch); --start-filter since Debian 9 (Stretch); --threshold since Debian 9 (Stretch); --verbose since Debian 9 (Stretch); --white-margins since Debian 9 (Stretch); -h since Debian 9 (Stretch); -l since Debian 9 (Stretch); -ld since Debian 9 (Stretch); -o since Debian 9 (Stretch); -v since Debian 9 (Stretch).