mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/file-setup.git
synced 2024-12-25 19:04:18 +00:00
use LZW compression for output
This commit is contained in:
parent
053366aa09
commit
8aa9554339
@ -32,7 +32,7 @@ def merge_images(input_dir, output_dir, output_file_base, zip):
|
||||
pass
|
||||
cmd = 'ls -Q -v "{i}"/*.* > "{i}"/file_list.txt'.format(i=input_dir)
|
||||
subprocess.run(cmd, shell=True)
|
||||
cmd = 'convert @"{}"/file_list.txt "{}"/"{}".pdf'.format(input_dir, output_dir, output_file_base) # noqa
|
||||
cmd = 'convert @"{}"/file_list.txt -compress LZW "{}"/"{}".pdf'.format(input_dir, output_dir, output_file_base) # noqa
|
||||
subprocess.run(cmd, shell=True)
|
||||
cmd = 'rm "{}"/file_list.txt'.format(input_dir)
|
||||
subprocess.run(cmd, shell=True)
|
||||
@ -53,7 +53,6 @@ def merge_images(input_dir, output_dir, output_file_base, zip):
|
||||
|
||||
def main():
|
||||
args = parse_arguments()
|
||||
print(args)
|
||||
merge_images(args.i, args.o, args.f, args.zip)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user