66#
77#
88# Copyright (c) 2002-2007 Gene Cash
9- # Copyright (c) 2007-2022 Ianaré Sévi and contributors
9+ # Copyright (c) 2007-2023 Ianaré Sévi and contributors
1010#
1111# See LICENSE.txt file for licensing information
1212# See ChangeLog.rst file for all contributors and changes
2525logger = exif_log .get_logger ()
2626
2727
28- def get_args ():
28+ def get_args () -> argparse . Namespace :
2929 parser = argparse .ArgumentParser (
3030 prog = 'EXIF.py' ,
3131 description = 'Extract EXIF information from digital image files.'
@@ -41,7 +41,7 @@ def get_args():
4141 )
4242 parser .add_argument (
4343 '-q' , '--quick' , action = 'store_false' , dest = 'detailed' ,
44- help = 'Do not process MakerNotes' ,
44+ help = 'Do not process MakerNotes and do not extract thumbnails ' ,
4545 )
4646 parser .add_argument (
4747 '-t' , '--tag' , type = str , dest = 'stop_tag' ,
@@ -87,7 +87,12 @@ def main(args) -> None:
8787
8888 # get the tags
8989 data = process_file (
90- img_file , stop_tag = args .stop_tag , details = args .detailed , strict = args .strict , debug = args .debug
90+ img_file ,
91+ stop_tag = args .stop_tag ,
92+ details = args .detailed ,
93+ strict = args .strict ,
94+ debug = args .debug ,
95+ extract_thumbnail = args .detailed
9196 )
9297
9398 tag_stop = timeit .default_timer ()
0 commit comments