diff --git a/process b/process index c1375230..761b70c2 100755 --- a/process +++ b/process @@ -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 diff --git a/scan b/scan index 6996eea7..104289a1 100755 --- a/scan +++ b/scan @@ -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',