Skip to content

Commit

Permalink
Fix arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Nov 25, 2018
1 parent c431bed commit 1248a3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 17 deletions.
6 changes: 2 additions & 4 deletions process
Expand Up @@ -83,11 +83,9 @@ def transform(config, root_folder):
shutil.copyfile(os.path.join(root_folder, img), os.path.join(root_folder, 'process', os.path.basename(img)))
img = os.path.join(root_folder, 'process', os.path.basename(img))
# force-cleanup
if config['args']['force_cleanup']:
if config['args']['level']:
call(mogrify + ['-level', '15%,1,85%', img])
else:
call(mogrify + ['-level', '10%,1,90%', img])
save(root_folder, img, '1-cleanup')
save(root_folder, img, '1-cleanup')

marging_horizontal=100
maring_vertical=100
Expand Down
16 changes: 3 additions & 13 deletions scan
Expand Up @@ -40,20 +40,10 @@ add_argument(
help="Don't use ADF"
)
add_argument(
'--no-force-cleanup',
dest='force_cleanup',
'--no-level',
dest='level',
action='store_false',
help="Don't use ADF"
)
add_argument(
'--new-crop',
action='store_true',
help="Use the old image magic crop"
)
add_argument(
'--no-crop',
action='store_true',
help="Use the old image magic crop"
help="Don't use level correction"
)
add_argument(
'--correspondent',
Expand Down

0 comments on commit 1248a3e

Please sign in to comment.