scantailor-cli(1) a post-processing tool for scanned pages


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


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.


-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
default: none
also sets deskew to manual mode
default: auto
default: normal
if set the content detection is set to manual mode
example: --content-box=100x100:1500x2500
sets left, top, right and bottom margins to same number.
sets vertical and horizontal alignment to center
sets x and y dpi. default: 600
sets x and y output dpi. default: 600
default: black_and_white
default: false
default: false
n<0 thinner
n>0 thicker
default: 0
default: normal
default: off
default: 2.0
default: 4
default: 6
-o, --output-project=<project_name>


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