First commit

This commit is contained in:
2024-06-28 15:48:09 +02:00
parent 3d3a3d3ac2
commit 8d319d8cc0
4 changed files with 99 additions and 0 deletions

14
start.py Normal file
View File

@@ -0,0 +1,14 @@
from argparse import ArgumentParser
from sorter import ImageSorter
if __name__ == '__main__':
parser = ArgumentParser(prog="image-sorter", description="A tool for renaming images to the date from the exif data")
parser.add_argument("-i", "--input_dir", required=True, type=str)
parser.add_argument("-o", "--output_dir", required=True, type=str)
parser.add_argument("-c", "--config_mapping_file", required=True, type=str)
parser.add_argument("-s", "--suffix", type=str)
parser.add_argument("-v", "--verbose", action="store_true")
args = parser.parse_args()
sorter = ImageSorter(args)
sorter.sort_files()