forked from SergeyRyzhov/exiftool-scripts-for-takeout
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathunsafe_img_fix.args
More file actions
48 lines (40 loc) · 1.05 KB
/
unsafe_img_fix.args
File metadata and controls
48 lines (40 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
# Best-effort attempt to fix broken/corrupted metadata from images.
#
# References:
# https://exiftool.org/faq.html#Q20
#
# Options overview: https://exiftool.org/exiftool_pod.html#Option-Overview
# Writing file/directory names: https://exiftool.org/filename.html
#
# Perl regex references:
# https://perldoc.perl.org/perlre
# https://perldoc.perl.org/perlop#Regexp-Quote-Like-Operators
#
# Online testers:
# https://ingram-braun.net/erga/online-regex-tester-perl-php-javascript/
# https://regex101.com/
# Common options, see COMMONARGS.md for details.
-api
LargeFileSupport=1
-duplicates
-unknown2
-progress
-progress:ExifTool %p%%
-preserve
-r
# Process only files with 'image' MIME type.
-if
($MIMEType=~/image/)
# Clean all tag values.
-all=
# Load non-corrupted tag values from the file.
-tagsFromFile
%d%F
# Write all the tag data back.
-all:all
# 'unsafe' makes exiftool to copy tags that are not normally copied
-unsafe
# ICC profiles are not covered by 'unsafe' and must be specified separately
-icc_profile
# Clobber everything
-overwrite_original