unpaper: round off DPI

This commit is contained in:
James R. Barlow
2020-11-03 01:14:57 -08:00
parent 54bbbfdeb3
commit ced7ad9164
+1 -1
View File
@@ -66,7 +66,7 @@ def _setup_unpaper_io(tmpdir: Path, input_file: Path) -> Tuple[Path, Path]:
def run(input_file, output_file, dpi, mode_args):
args_unpaper = ['unpaper', '-v', '--dpi', str(dpi)] + mode_args
args_unpaper = ['unpaper', '-v', '--dpi', str(round(dpi, 6))] + mode_args
with TemporaryDirectory() as tmpdir:
input_pnm, output_pnm = _setup_unpaper_io(Path(tmpdir), input_file)