{
    "content": [
        {
            "type": "text",
            "text": "# EXIFTOOL(1p) (man)\n\n**Summary:** exiftool - Read and write meta information in files\n\n## Flags\n\n| Flag | Long | Arg | Description |\n|------|------|-----|-------------|\n| — | — | — | Copy tag values from SRCFILE to FILE. Tag names on the command line after this option specify the tags to be copied, or  |\n| -x | — | — | Exclude the specified tag. There may be multiple -x options. This has the same effect as --TAG on the command line. See  |\n| — | — | — | Output information in the form of exiftool arguments, suitable for use with the -@ option when writing. May be combined  |\n| -b | --binary | — | Output requested metadata in binary format without tag names or descriptions (-b or -binary). This option is mainly used |\n| -c | — | — | Set the print format for GPS coordinates. FMT uses the same syntax as a \"printf\" format string. The specifiers correspon |\n| — | — | — | If TYPE is \"ExifTool\" or not specified, this option sets the ExifTool character encoding for output tag values when read |\n| — | — | — | Export information in CSV format, or import information if CSVFILE is specified. When importing, the CSV file must be in |\n| — | — | — | Set the delimiter for separating CSV entries for CSV file input/output via the -csv option. STR may contain \"\\t\", \"\\n\",  |\n| -d | — | — | Set the format for date/time tag values. The FMT string may contain formatting codes beginning with a percent character  |\n| -D | — | — | Show tag ID number in decimal when extracting information. |\n| -E | — | — | Escape characters in output tag values for HTML (-E), XML (-ex) or C (-ec). For HTML, all characters with Unicode code p |\n| -f | — | — | Force printing of tags even if their values are not found. This option only applies when specific tags are requested on  |\n| -g | — | — | Organize output by tag group. NUM specifies a group family number, and may be 0 (general location), 1 (specific location |\n| -G | — | — | Same as -g but print group name for each tag. -G0 is assumed if NUM is not specified. May be combined with a number of o |\n| -h | — | — | Use HTML table formatting for output. Implies the -E option. The formatting options -D, -H, -g, -G, -l and -s may be use |\n| -H | — | — | Show tag ID number in hexadecimal when extracting information. |\n| — | — | — | Generate a dynamic web page containing a hex dump of the EXIF information. This can be a very powerful tool for low-leve |\n| -j | — | — | Use JSON (JavaScript Object Notation) formatting for console output, or import JSON file if JSONFILE is specified. This  |\n| -l | — | — | Use long 2-line Canon-style output format. Adds a description and unconverted value (if it is different from the convert |\n| -L | — | — | Use Windows Latin1 encoding (cp1252) for output tag values instead of the default UTF-8. When writing, -L specifies that |\n| — | — | — | Set current language for tag descriptions and converted values. LANG is \"de\", \"fr\", \"ja\", etc. Use -lang with no other a |\n| — | — | — | For list-type tags, this causes only the item with the specified index to be extracted. INDEX is 0 for the first item in |\n| -n | --printConv | — | Disable print conversion for all tags. By default, extracted values are converted to a more human-readable format, but t |\n| -p | — | — | Print output in the format specified by the given file or string. The argument is interpreted as a string unless a file  |\n| -l | — | — | with -php, and duplicate tags are handled in the same way as with the -json option. As well, the -b option may be added  |\n| -s | — | — | Short output format. Prints tag names instead of descriptions. Add NUM or up to 3 -s options for even shorter formats: - |\n| -S | — | — | Very short format. The same as -s2 or two -s options. Tag names are printed instead of descriptions, and no extra spaces |\n| — | — | — | Specify separator string for items in list-type tags. When reading, the default is to join list items with \", \". When wr |\n| — | --sort | — | Sort output by tag description, or by tag name if the -s option is used. When sorting by description, the sort order wil |\n| — | --struct | — | Output structured XMP information instead of flattening to individual tags. This option works well when combined with th |\n| -t | — | — | Output a tab-delimited list of description/values (useful for database import). May be combined with -s to print tag nam |\n| -T | — | — | Output tag values in table form. Equivalent to -t -S -q -f. |\n| -v | — | — | Print verbose messages. NUM specifies the level of verbosity in the range 0-5, with higher numbers being more verbose. I |\n| -w | — | — | Write console output to files with names ending in EXT, one for each source file. The output file name is obtained by re |\n| -W | — | — | This enhanced version of the -w option allows a separate output file to be created for each extracted tag. See the -w op |\n| — | --Wext | — | This option is used to specify the type of output file(s) written by the -W option. An output file is written only if th |\n| -X | — | — | Use ExifTool-specific RDF/XML formatting for console output. Implies the -a option, so duplicate tags are extracted. The |\n| -a | --duplicates | — | Allow (-a) or suppress (--a) duplicate tag names to be extracted. By default, duplicate tags are suppressed when reading |\n| -e | --composite | — | Extract existing tags only -- don't generate composite tags. |\n| — | — | — | Extract information from embedded documents in EPS files, embedded EPS information and JPEG and Jpeg2000 images in PDF f |\n| — | --ext | — | Process only files with (-ext) or without (--ext) a specified extension. There may be multiple -ext and --ext options. A |\n| -F | — | — | Fix the base for maker notes offsets. A common problem with some image editors is that offsets in the maker notes are no |\n| — | — | — | Increase speed of extracting information. With -fast (or -fast1), ExifTool will not scan to the end of a JPEG image to c |\n| — | — | — | Set file processing order according to the sorted value of the specified TAG. For example, to process files in order of  |\n| -i | — | — | Ignore specified directory name. DIR may be either an individual folder name, or a full path. If a full path is specifie |\n| — | — | — | Specify a condition to be evaluated before processing each FILE. EXPR is a Perl-like logic expression containing tag nam |\n| -m | — | — | Ignore minor errors and warnings. This enables writing to files with minor errors and disables some validation checks wh |\n| -o | — | — | Set the output file or directory name when writing information. Without this option, when any \"real\" tags are written th |\n| — | — | — | Overwrite the original FILE (instead of preserving it by adding \"original\" to the file name) when writing information to |\n| — | — | — | Similar to -overwriteoriginal except that an extra step is added to allow the original file attributes to be preserved.  |\n| -P | — | — | Preserve the filesystem modification date/time (\"FileModifyDate\") of the original file when writing. Note that some file |\n| — | — | — | Specify password to allow processing of password-protected PDF documents. If a password is required but not given, a war |\n| — | — | — | Show the progress when processing files. Without a colon, the -progress option adds a progress count in brackets after t |\n| -q | — | — | Quiet processing. One -q suppresses normal informational messages, and a second -q suppresses warnings as well. Error me |\n| -r | — | — | Recursively process files in subdirectories. Only meaningful if FILE is a directory name. Subdirectories with names begi |\n| — | — | — | Scan all files (even unsupported formats) for XMP information unless found already. When combined with the -fast option, |\n| -u | — | — | Extract values of unknown tags. Add another -u to also extract unknown information from binary data blocks. This option  |\n| -U | — | — | Extract values of unknown tags as well as unknown information from some binary data blocks. This is the same as two -u o |\n| — | — | — | Set mode for writing/creating tags. MODE is a string of one or more characters from the list below. The default write mo |\n| -z | — | — | When reading, causes information to be extracted from .gz and .bz2 compressed images (only one image per archive; requir |\n| -k | — | — | Pause with the message \"-- press any key --\" or \"-- press RETURN --\" (depending on your system) before terminating. This |\n| — | — | — | Print a list of all valid tag names (-list), all writable tag names (-listw), all supported file extensions (-listf), al |\n| -v | — | — | information (see the README file of the full distribution for more details about optional libraries), or -v2 to also lis |\n| — | — | — | Geotag images from the specified GPS track log file. Using the -geotag option is equivalent to writing a value to the \"G |\n| — | — | — | Shift all formatted date/time values by the specified amount when reading. Does not apply to unformatted (-n) output. SH |\n| — | — | — | Add features from specified plug-in MODULE. Currently, the MWG module is the only plug- in module distributed with exift |\n| — | — | — |  |\n| — | — | — | These utility options automate the maintenance of the \"original\" files created by exiftool. They have no effect on files |\n| — | — | — | Set ExifTool API option. OPT is an API option name. The option value is set to 1 if =VAL is omitted. If VAL is omitted,  |\n| — | — | — | Specifies that all arguments following this option are common to all executed commands when -execute is used. This and t |\n| — | — | — | Load specified configuration file instead of the default \".ExifToolconfig\". If used, this option must come before all ot |\n| — | — | — | Echo TEXT to stdout (-echo or -echo1) or stderr (-echo2). Text is output as the command line is parsed, before the proce |\n| — | — | — | Save the names of files giving errors (NUM missing or 1), files that were unchanged (NUM is 2), files that fail the -if  |\n| — | — | — | Execute command for all arguments up to this point on the command line (plus any arguments specified by -commonargs). Th |\n| — | — | — | List directories themselves instead of their contents. This option effectively causes directories to be treated as norma |\n| — | — | — | Specify a different source file to be processed based on the name of the original FILE. This may be useful in some speci |\n| — | — | — | If FLAG is 1 or \"True\" (case insensitive), causes exiftool keep reading from the -@ ARGFILE even after reaching the end  |\n| — | — | — | Set user parameter. PARAM is an arbitrary user parameter name. This is an interface to the API UserParam option (see the |\n\n## See Also\n\n- ExifTool(3pm)\n- TagNames(3pm)\n- Shortcuts(3pm)\n\n## Section Outline\n\n- **NAME** (2 lines)\n- **SYNOPSIS** (1 lines) — 4 subsections\n  - Reading (2 lines)\n  - Writing (2 lines)\n  - Copying (2 lines)\n  - Other (7 lines)\n- **DESCRIPTION** (6 lines) — 1 subsections\n  - -csv= -json= -tagsFromFile (77 lines)\n- **OPTIONS** (8 lines) — 80 subsections\n  - Option Overview (106 lines)\n  - Option Details (131 lines)\n  - -tagsFromFile (123 lines)\n  - -x -exclude (9 lines)\n  - -args -argFormat (18 lines)\n  - -b --b -binary --binary (13 lines)\n  - -c -coordFormat (24 lines)\n  - -charset (51 lines)\n  - -csv (54 lines)\n  - -csvDelim (4 lines)\n  - -d -dateFormat (11 lines)\n  - -D -decimal (2 lines)\n  - -E -ex -ec -escapeHTML -escapeXML -escapeC (7 lines)\n  - -f -forcePrint (7 lines)\n  - -g -groupHeadings (12 lines)\n  - -G -groupNames (5 lines)\n  - -h -htmlFormat (4 lines)\n  - -H -hex (2 lines)\n  - -htmlDump (8 lines)\n  - -j -json (33 lines)\n  - -l -long (5 lines)\n  - -L -latin (4 lines)\n  - -lang (44 lines)\n  - -listItem (5 lines)\n  - -n --printConv (23 lines)\n  - -p -printFormat (53 lines)\n  - -php -g -G -D -H -l -sep -struct (10 lines)\n  - -s -short (9 lines)\n  - -S -veryShort (3 lines)\n  - -sep -separator (15 lines)\n  - -sort --sort (7 lines)\n  - -struct --struct (9 lines)\n  - -t -tab (6 lines)\n  - -T -table (2 lines)\n  - -v -verbose (8 lines)\n  - -w -textOut (118 lines)\n  - -W -tagOut (37 lines)\n  - -Wext --Wext -tagOutExt (5 lines)\n  - -X -xmlFormat (23 lines)\n  - -a --a -duplicates --duplicates (6 lines)\n  - -e --composite (2 lines)\n  - -ee -extractEmbedded (18 lines)\n  - -ext --ext -extension (21 lines)\n  - -F -fixBase (11 lines)\n  - -fast (16 lines)\n  - -fileOrder (18 lines)\n  - -i -ignore (8 lines)\n  - -if (65 lines)\n  - -m -ignoreMinorErrors (9 lines)\n  - -o -out (28 lines)\n  - -overwrite (8 lines)\n  - -overwrite (12 lines)\n  - -P -preserve (8 lines)\n  - -password (4 lines)\n  - -progress (15 lines)\n  - -q -quiet (5 lines)\n  - -r -recurse (7 lines)\n  - -scanForXMP (4 lines)\n  - -u -unknown (6 lines)\n  - -U -unknown2 (3 lines)\n  - -wm -writeMode (13 lines)\n  - -z -zip (31 lines)\n  - -k -pause (4 lines)\n  - -list -listw -listf -listr -listwf -listg -listd -listx (34 lines)\n  - -ver -v (8 lines)\n  - -geotag (45 lines)\n  - -globalTimeShift (13 lines)\n  - -use (9 lines)\n  - -restore (1 lines)\n  - -delete (26 lines)\n  - -api (5 lines)\n  - -common (5 lines)\n  - -config (8 lines)\n  - -echo (6 lines)\n  - -efile (7 lines)\n  - -execute (8 lines)\n  - -list (11 lines)\n  - -srcfile (23 lines)\n  - -stay (45 lines)\n  - -userParam (76 lines)\n- **WINDOWS UNICODE FILE NAMES** (23 lines) — 1 subsections\n  - -geotag -o -p -srcfile -tagsFromFile -csv -j - (16 lines)\n- **WRITING READ-ONLY FILES** (18 lines)\n- **READING EXAMPLES** (81 lines)\n- **WRITING EXAMPLES** (106 lines)\n- **COPYING EXAMPLES** (97 lines)\n- **RENAMING EXAMPLES** (49 lines)\n- **GEOTAGGING EXAMPLES** (50 lines)\n- **PIPING EXAMPLES** (19 lines)\n- **INTERRUPTING EXIFTOOL** (5 lines)\n- **EXIT STATUS** (3 lines)\n- **AUTHOR** (5 lines)\n- **SEE ALSO** (6 lines)\n\n## Full Content\n\n### NAME\n\nexiftool - Read and write meta information in files\n\n### SYNOPSIS\n\n#### Reading\n\nexiftool [OPTIONS] [-TAG...] [--TAG...] FILE...\n\n#### Writing\n\nexiftool [OPTIONS] -TAG[+-<]=[VALUE]... FILE...\n\n#### Copying\n\nexiftool [OPTIONS] -tagsFromFile SRCFILE [-[DSTTAG<]SRCTAG...] FILE...\n\n#### Other\n\nexiftool [ -ver | -list[w|f|r|wf|g[NUM]|d|x] ]\n\nFor specific examples, see the EXAMPLES sections below.\n\nThis documentation is displayed if exiftool is run without an input FILE when one is\nexpected.\n\n### DESCRIPTION\n\nA command-line interface to Image::ExifTool, used for reading and writing meta information in\na variety of file types.  FILE is one or more source file names, directory names, or \"-\" for\nthe standard input.  Metadata is read from source files and printed in readable form to the\nconsole (or written to output text files with -w).\n\nTo write or delete metadata, tag values are assigned using -TAG=[VALUE], and/or the -geotag,\n\n#### -csv= -json= -tagsFromFile\n\ndefault the original files are preserved with \"original\" appended to their names -- be sure\nto verify that the new files are OK before erasing the originals.  Once in write mode,\nexiftool will ignore any read-specific options.\n\nNote:  If FILE is a directory name then only supported file types in the directory are\nprocessed (in write mode only writable types are processed).  However, files may be specified\nby name, or the -ext option may be used to force processing of files with any extension.\nHidden files in the directory are also processed.  Adding the -r option causes subdirectories\nto be processed recursively, but subdirectories with names beginning with \".\" are skipped\nunless -r. is used.\n\nBelow is a list of file types and meta information formats currently supported by ExifTool (r\n= read, w = write, c = create):\n\nFile Types\n------------+-------------+-------------+-------------+------------\n360   r/w   | DR4   r/w/c | JNG   r/w   | O     r     | RAW   r/w\n3FR   r     | DSS   r     | JP2   r/w   | ODP   r     | RIFF  r\n3G2   r/w   | DV    r     | JPEG  r/w   | ODS   r     | RSRC  r\n3GP   r/w   | DVB   r/w   | JSON  r     | ODT   r     | RTF   r\nA     r     | DVR-MS r    | JXL   r     | OFR   r     | RW2   r/w\nAA    r     | DYLIB r     | K25   r     | OGG   r     | RWL   r/w\nAAE   r     | EIP   r     | KDC   r     | OGV   r     | RWZ   r\nAAX   r/w   | EPS   r/w   | KEY   r     | ONP   r     | RM    r\nACR   r     | EPUB  r     | LA    r     | OPUS  r     | SEQ   r\nAFM   r     | ERF   r/w   | LFP   r     | ORF   r/w   | SKETCH r\nAI    r/w   | EXE   r     | LIF   r     | ORI   r/w   | SO    r\nAIFF  r     | EXIF  r/w/c | LNK   r     | OTF   r     | SR2   r/w\nAPE   r     | EXR   r     | LRV   r/w   | PAC   r     | SRF   r\nARQ   r/w   | EXV   r/w/c | M2TS  r     | PAGES r     | SRW   r/w\nARW   r/w   | F4A/V r/w   | M4A/V r/w   | PBM   r/w   | SVG   r\nASF   r     | FFF   r/w   | MACOS r     | PCD   r     | SWF   r\nAVI   r     | FITS  r     | MAX   r     | PCX   r     | THM   r/w\nAVIF  r/w   | FLA   r     | MEF   r/w   | PDB   r     | TIFF  r/w\nAZW   r     | FLAC  r     | MIE   r/w/  | PDF   r/w   | TORRENT r\nBMP   r     | FLIF  r/w   | MIFF  r   c | PEF   r/w   | TTC   r\nBPG   r     | FLV   r     | MKA   r     | PFA   r     | TTF   r\nBTF   r     | FPF   r     | MKS   r     | PFB   r     | TXT   r\nCHM   r     | FPX   r     | MKV   r     | PFM   r     | VCF   r\nCOS   r     | GIF   r/w   | MNG   r/w   | PGF   r     | VRD   r/w/c\nCR2   r/w   | GPR   r/w   | MOBI  r     | PGM   r/w   | VSD   r\nCR3   r/w   | GZ    r     | MODD  r     | PLIST r     | WAV   r\nCRM   r/w   | HDP   r/w   | MOI   r     | PICT  r     | WDP   r/w\nCRW   r/w   | HDR   r     | MOS   r/w   | PMP   r     | WEBP  r\nCS1   r/w   | HEIC  r/w   | MOV   r/w   | PNG   r/w   | WEBM  r\nCSV   r     | HEIF  r/w   | MP3   r     | PPM   r/w   | WMA   r\nCZI   r     | HTML  r     | MP4   r/w   | PPT   r     | WMV   r\nDCM   r     | ICC   r/w/c | MPC   r     | PPTX  r     | WTV   r\nDCP   r/w   | ICS   r     | MPG   r     | PS    r/w   | WV    r\nDCR   r     | IDML  r     | MPO   r/w   | PSB   r/w   | X3F   r/w\nDFONT r     | IIQ   r/w   | MQV   r/w   | PSD   r/w   | XCF   r\nDIVX  r     | IND   r/w   | MRC   r     | PSP   r     | XLS   r\nDJVU  r     | INSP  r/w   | MRW   r/w   | QTIF  r/w   | XLSX  r\nDLL   r     | INSV  r     | MXF   r     | R3D   r     | XMP   r/w/c\nDNG   r/w   | INX   r     | NEF   r/w   | RA    r     | ZIP   r\nDOC   r     | ISO   r     | NKSC  r/w   | RAF   r/w   |\nDOCX  r     | ITC   r     | NRW   r/w   | RAM   r     |\nDPX   r     | J2C   r     | NUMBERS r   | RAR   r     |\n\nMeta Information\n----------------------+----------------------+---------------------\nEXIF           r/w/c  |  CIFF           r/w  |  Ricoh RMETA    r\nGPS            r/w/c  |  AFCP           r/w  |  Picture Info   r\nIPTC           r/w/c  |  Kodak Meta     r/w  |  Adobe APP14    r\nXMP            r/w/c  |  FotoStation    r/w  |  MPF            r\nMakerNotes     r/w/c  |  PhotoMechanic  r/w  |  Stim           r\nPhotoshop IRB  r/w/c  |  JPEG 2000      r    |  DPX            r\nICC Profile    r/w/c  |  DICOM          r    |  APE            r\nMIE            r/w/c  |  Flash          r    |  Vorbis         r\nJFIF           r/w/c  |  FlashPix       r    |  SPIFF          r\nDucky APP12    r/w/c  |  QuickTime      r    |  DjVu           r\nPDF            r/w/c  |  Matroska       r    |  M2TS           r\nPNG            r/w/c  |  MXF            r    |  PE/COFF        r\nCanon VRD      r/w/c  |  PrintIM        r    |  AVCHD          r\nNikon Capture  r/w/c  |  FLAC           r    |  ZIP            r\nGeoTIFF        r/w/c  |  ID3            r    |  (and more)\n\n### OPTIONS\n\nCase is not significant for any command-line option (including tag and group names), except\nfor single-character options when the corresponding upper-case option exists.  Many single-\ncharacter options have equivalent long-name versions (shown in brackets), and some options\nhave inverses which are invoked with a leading double-dash.  Unrecognized options are\ninterpreted as tag names (for this reason, multiple single-character options may NOT be\ncombined into one argument).  Contrary to standard practice, options may appear after source\nfile names on the exiftool command line.\n\n#### Option Overview\n\nTag operations\n\n-TAG or --TAG                    Extract or exclude specified tag\n-TAG[+-^]=[VALUE]                Write new value for tag\n-TAG[+-]<=DATFILE                Write tag value from contents of file\n-TAG[+-]<SRCTAG                  Copy tag value (see -tagsFromFile)\n\n-tagsFromFile SRCFILE            Copy tag values from file\n-x TAG      (-exclude)           Exclude specified tag\n\nInput-output text formatting\n\n-args       (-argFormat)         Format metadata as exiftool arguments\n-b          (-binary)            Output metadata in binary format\n-c FMT      (-coordFormat)       Set format for GPS coordinates\n-charset [[TYPE=]CHARSET]        Specify encoding for special characters\n-csv[[+]=CSVFILE]                Export/import tags in CSV format\n-csvDelim STR                    Set delimiter for CSV file\n-d FMT      (-dateFormat)        Set format for date/time values\n-D          (-decimal)           Show tag ID numbers in decimal\n-E,-ex,-ec  (-escape(HTML|XML|C))Escape tag values for HTML, XML or C\n-f          (-forcePrint)        Force printing of all specified tags\n-g[NUM...]  (-groupHeadings)     Organize output by tag group\n-G[NUM...]  (-groupNames)        Print group name for each tag\n-h          (-htmlFormat)        Use HTML formatting for output\n-H          (-hex)               Show tag ID numbers in hexadecimal\n-htmlDump[OFFSET]                Generate HTML-format binary dump\n-j[[+]=JSONFILE] (-json)         Export/import tags in JSON format\n-l          (-long)              Use long 2-line output format\n-L          (-latin)             Use Windows Latin1 encoding\n-lang [LANG]                     Set current language\n-listItem INDEX                  Extract specific item from a list\n-n          (--printConv)        No print conversion\n-p FMTFILE  (-printFormat)       Print output in specified format\n-php                             Export tags as a PHP Array\n-s[NUM]     (-short)             Short output format\n-S          (-veryShort)         Very short output format\n-sep STR    (-separator)         Set separator string for list items\n-sort                            Sort output alphabetically\n-struct                          Enable output of structured information\n-t          (-tab)               Output in tab-delimited list format\n-T          (-table)             Output in tabular format\n-v[NUM]     (-verbose)           Print verbose messages\n-w[+|!] EXT (-textOut)           Write (or overwrite!) output text files\n-W[+|!] FMT (-tagOut)            Write output text file for each tag\n-Wext EXT   (-tagOutExt)         Write only specified file types with -W\n-X          (-xmlFormat)         Use RDF/XML output format\n\nProcessing control\n\n-a          (-duplicates)        Allow duplicate tags to be extracted\n-e          (--composite)        Do not generate composite tags\n-ee[NUM]    (-extractEmbedded)   Extract information from embedded files\n-ext[+] EXT (-extension)         Process files with specified extension\n-F[OFFSET]  (-fixBase)           Fix the base for maker notes offsets\n-fast[NUM]                       Increase speed when extracting metadata\n-fileOrder[NUM] [-]TAG           Set file processing order\n-i DIR      (-ignore)            Ignore specified directory name\n-if[NUM] EXPR                    Conditionally process files\n-m          (-ignoreMinorErrors) Ignore minor errors and warnings\n-o OUTFILE  (-out)               Set output file or directory name\n-overwriteoriginal              Overwrite original by renaming tmp file\n-overwriteoriginalinplace     Overwrite original by copying tmp file\n-P          (-preserve)          Preserve file modification date/time\n-password PASSWD                 Password for processing protected files\n-progress[:[TITLE]]              Show file progress count\n-q          (-quiet)             Quiet processing\n-r[.]       (-recurse)           Recursively process subdirectories\n-scanForXMP                      Brute force XMP scan\n-u          (-unknown)           Extract unknown tags\n-U          (-unknown2)          Extract unknown binary tags too\n-wm MODE    (-writeMode)         Set mode for writing/creating tags\n-z          (-zip)               Read/write compressed information\n\nOther options\n\n-@ ARGFILE                       Read command-line arguments from file\n-k          (-pause)             Pause before terminating\n-list[w|f|wf|g[NUM]|d|x]         List various exiftool capabilities\n-ver                             Print exiftool version number\n--                               End of options\n\nSpecial features\n\n-geotag TRKFILE                  Geotag images from specified GPS log\n-globalTimeShift SHIFT           Shift all formatted date/time values\n-use MODULE                      Add features from plug-in module\n\nUtilities\n\n-deleteoriginal[!]              Delete \"original\" backups\n-restoreoriginal                Restore from \"original\" backups\n\nAdvanced options\n\n-api OPT[[^]=[VAL]]              Set ExifTool API option\n-commonargs                     Define common arguments\n-config CFGFILE                  Specify configuration file name\n-echo[NUM] TEXT                  Echo text to stdout or stderr\n-efile[NUM][!] ERRFILE           Save names of files with errors\n-execute[NUM]                    Execute multiple commands on one line\n-listdir                        List directories, not their contents\n-srcfile FMT                     Process a different source file\n-stayopen FLAG                  Keep reading -@ argfile even after EOF\n-userParam PARAM[[^]=[VAL]]      Set user parameter (API UserParam opt)\n\n#### Option Details\n\nTag operations\n\n-TAG Extract information for the specified tag (eg. \"-CreateDate\").  Multiple tags may be\nspecified in a single command.  A tag name is the handle by which a piece of information\nis referenced.  See Image::ExifTool::TagNames for documentation on available tag names.\nA tag name may include leading group names separated by colons (eg. \"-EXIF:CreateDate\",\nor \"-Doc1:XMP:Creator\"), and each group name may be prefixed by a digit to specify\nfamily number (eg.  \"-1IPTC:City\").  Use the -listg option to list available group names\nby family.\n\nA special tag name of \"All\" may be used to indicate all meta information (ie. -All).\nThis is particularly useful when a group name is specified to extract all information in\na group (but beware that unless the -a option is also used, some tags in the group may\nbe suppressed by same-named tags in other groups).  The wildcard characters \"?\" and \"*\"\nmay be used in a tag name to match any single character and zero or more characters\nrespectively. These may not be used in a group name, with the exception that a group\nname of \"*\" (or \"All\") may be used to extract all instances of a tag (as if -a was\nused).  Note that arguments containing wildcards must be quoted on the command line of\nmost systems to prevent shell globbing.\n\nA \"#\" may be appended to the tag name to disable the print conversion on a per-tag basis\n(see the -n option).  This may also be used when writing or copying tags.\n\nIf no tags are specified, all available information is extracted (as if \"-All\" had been\nspecified).\n\nNote:  Descriptions, not tag names, are shown by default when extracting information.\nUse the -s option to see the tag names instead.\n\n--TAG\nExclude specified tag from extracted information.  Same as the -x option.  Group names\nand wildcards are permitted as described above for -TAG.  Once excluded from the output,\na tag may not be re-included by a subsequent option.  May also be used following a\n-tagsFromFile option to exclude tags from being copied (when redirecting to another tag,\nit is the source tag that should be excluded), or to exclude groups from being deleted\nwhen deleting all information (eg. \"-all= --exif:all\" deletes all but EXIF information).\nBut note that this will not exclude individual tags from a group delete (unless a family\n2 group is specified, see note 4 below).  Instead, individual tags may be recovered\nusing the -tagsFromFile option (eg. \"-all= -tagsfromfile @ -artist\").\n\nTo speed processing when reading XMP, exclusions in XMP groups also bypass processing of\nthe corresponding XMP property and any contained properties.  For example,\n\"--xmp-crs:all\" may speed processing significantly in cases where a large number of XMP-\ncrs tags exist.  To use this feature to bypass processing of a specific XMP property,\nthe property name must be used instead of the ExifTool tag name (eg. \"--xmp-crs:dabs\").\nAlso, \"XMP-all\" may be used to to indicate any XMP namespace (eg. <C--xmp-all:dabs>).\n\n-TAG[+-^]=[VALUE]\nWrite a new value for the specified tag (eg. \"-comment=wow\"), or delete the tag if no\nVALUE is given (eg. \"-comment=\").  \"+=\" and \"-=\" are used to add or remove existing\nentries from a list, or to shift date/time values (see Image::ExifTool::Shift.pl and\nnote 6 below for more details).  \"+=\" may also be used to increment numerical values (or\ndecrement if VALUE is negative), and \"-=\" may be used to conditionally delete or replace\na tag (see \"WRITING EXAMPLES\" for examples).  \"^=\" is used to write an empty string\ninstead of deleting the tag when no VALUE is given, but otherwise it is equivalent to\n\"=\", but note that the caret must be quoted on the Windows command line.\n\nTAG may contain one or more leading family 0, 1, 2 or 7 group names, prefixed by\noptional family numbers, and separated colons.  If no group name is specified, the tag\nis created in the preferred group, and updated in any other location where a same-named\ntag already exists.  The preferred group in JPEG and TIFF-format images is the first\ngroup in the following list where TAG is valid: 1) EXIF, 2) IPTC, 3) XMP.\n\nThe wildcards \"*\" and \"?\" may be used in tag names to assign the same value to multiple\ntags.  When specified with wildcards, \"Unsafe\" tags are not written.  A tag name of\n\"All\" is equivalent to \"*\" (except that it doesn't require quoting, while arguments with\nwildcards do on systems with shell globbing), and is often used when deleting all\nmetadata (ie. \"-All=\") or an entire group (eg. \"-XMP-dc:All=\", see note 4 below).  Note\nthat not all groups are deletable, and that the JPEG APP14 \"Adobe\" group is not removed\nby default with \"-All=\" because it may affect the appearance of the image.  However,\ncolor space information is removed, so the colors may be affected (but this may be\navoided by copying back the tags defined by the ColorSpaceTags shortcut).  Use the\n-listd option for a complete list of deletable groups, and see note 5 below regarding\nthe \"APP\" groups.  Also, within an image some groups may be contained within others, and\nthese groups are removed if the containing group is deleted:\n\nJPEG Image:\n- Deleting EXIF or IFD0 also deletes ExifIFD, GlobParamIFD,\nGPS, IFD1, InteropIFD, MakerNotes, PrintIM and SubIFD.\n- Deleting ExifIFD also deletes InteropIFD and MakerNotes.\n- Deleting Photoshop also deletes IPTC.\n\nTIFF Image:\n- Deleting EXIF only removes ExifIFD which also deletes\nInteropIFD and MakerNotes.\n\nNotes:\n\n1) Many tag values may be assigned in a single command.  If two assignments affect the\nsame tag, the latter takes precedence (except for list-type tags, for which both values\nare written).\n\n2) In general, MakerNotes tags are considered \"Permanent\", and may be edited but not\ncreated or deleted individually.  This avoids many potential problems, including the\ninevitable compatibility problems with OEM software which may be very inflexible about\nthe information it expects to find in the maker notes.\n\n3) Changes to PDF files by ExifTool are reversible (by deleting the update with\n\"-PDF-update:all=\") because the original information is never actually deleted from the\nfile.  So ExifTool alone may not be used to securely edit metadata in PDF files.\n\n4) Specifying \"-GROUP:all=\" deletes the entire group as a block only if a single family\n0 or 1 group is specified.  Otherwise all deletable tags in the specified group(s) are\nremoved individually, and in this case is it possible to exclude individual tags from a\nmass delete.  For example, \"-time:all --Exif:Time:All\" removes all deletable Time tags\nexcept those in the EXIF.  This difference also applies if family 2 is specified when\ndeleting all groups.  For example, \"-2all:all=\" deletes tags individually, while\n\"-all:all=\" deletes entire blocks.\n\n5) The \"APP\" group names (\"APP0\" through \"APP15\") are used to delete JPEG application\nsegments which are not associated with another deletable group.  For example, specifying\n\"-APP14:All=\" will NOT delete the APP14 \"Adobe\" segment because this is accomplished\nwith \"-Adobe:All\".\n\n6) When shifting a value, the shift is applied to the original value of the tag,\noverriding any other values previously assigned to the tag on the same command line.  To\nshift a date/time value and copy it to another tag in the same operation, use the\n-globalTimeShift option.\n\nSpecial feature:  Integer values may be specified in hexadecimal with a leading \"0x\",\nand simple rational values may be specified as fractions.\n\n-TAG<=DATFILE or -TAG<=FMT\nSet the value of a tag from the contents of file DATFILE.  The file name may also be\ngiven by a FMT string where %d, %f and %e represent the directory, file name and\nextension of the original FILE (see the -w option for more details).  Note that quotes\nare required around this argument to prevent shell redirection since it contains a \"<\"\nsymbol.  If DATFILE/FMT is not provided, the effect is the same as \"-TAG=\", and the tag\nis simply deleted.  \"+<=\" or \"-<=\" may also be used to add or delete specific list\nentries, or to shift date/time values.\n\n#### -tagsFromFile\n\nCopy tag values from SRCFILE to FILE.  Tag names on the command line after this option\nspecify the tags to be copied, or excluded from the copy.  Wildcards are permitted in\nthese tag names.  If no tags are specified, then all possible tags (see note 1 below)\nfrom the source file are copied to same-named tags in the preferred location of the\noutput file (the same as specifying \"-all\").  More than one -tagsFromFile option may be\nused to copy tags from multiple files.\n\nBy default, this option will update any existing and writable same-named tags in the\noutput FILE, but will create new tags only in their preferred groups.  This allows some\ninformation to be automatically transferred to the appropriate group when copying\nbetween images of different formats. However, if a group name is specified for a tag\nthen the information is written only to this group (unless redirected to another group,\nsee below).  If \"All\" is used as a group name, then the specified tag(s) are written to\nthe same family 1 group they had in the source file (ie. the same specific location,\nlike ExifIFD or XMP-dc).  For example, the common operation of copying all writable tags\nto the same specific locations in the output FILE is achieved by adding \"-all:all\".  A\ndifferent family may be specified by adding a leading family number to the group name\n(eg. \"-0all:all\" preserves the same general location, like EXIF or XMP).\n\nSRCFILE may be the same as FILE to move information around within a single file.  In\nthis case, \"@\" may be used to represent the source file (ie. \"-tagsFromFile @\"),\npermitting this feature to be used for batch processing multiple files.  Specified tags\nare then copied from each file in turn as it is rewritten.  For advanced batch use, the\nsource file name may also be specified using a FMT string in which %d, %f and %e\nrepresent the directory, file name and extension of FILE.  (eg. the current FILE would\nbe represented by \"%d%f.%e\", with the same effect as \"@\").  See the -w option for FMT\nstring examples.\n\nA powerful redirection feature allows a destination tag to be specified for each copied\ntag.  With this feature, information may be written to a tag with a different name or\ngroup.  This is done using \"'-DSTTAG<SRCTAG'\" or \"'-SRCTAG>DSTTAG'\" on the command line\nafter -tagsFromFile, and causes the value of SRCTAG to be copied from SRCFILE and\nwritten to DSTTAG in FILE.  Has no effect unless SRCTAG exists in SRCFILE.  Note that\nthis argument must be quoted to prevent shell redirection, and there is no \"=\" sign as\nwhen assigning new values.  Source and/or destination tags may be prefixed by a group\nname and/or suffixed by \"#\".  Wildcards are allowed in both the source and destination\ntag names.  A destination group and/or tag name of \"All\" or \"*\" writes to the same\nfamily 1 group and/or tag name as the source.  If no destination group is specified, the\ninformation is written to the preferred group.  Whitespace around the \">\" or \"<\" is\nignored. As a convenience, \"-tagsFromFile @\" is assumed for any redirected tags which\nare specified without a prior -tagsFromFile option.  Copied tags may also be added or\ndeleted from a list with arguments of the form \"'-SRCTAG+<DSTTAG'\" or\n\"'-SRCTAG-<DSTTAG'\" (but see Note 5 below).\n\nAn extension of the redirection feature allows strings involving tag names to be used on\nthe right hand side of the \"<\" symbol with the syntax \"'-DSTTAG<STR'\", where tag names\nin STR are prefixed with a \"$\" symbol.  See the -p option and the \"Advanced formatting\nfeature\" section for more details about this syntax.  Strings starting with a \"=\" sign\nmust insert a single space after the \"<\" to avoid confusion with the \"<=\" operator which\nsets the tag value from the contents of a file.  A single space at the start of the\nstring is removed if it exists, but all other whitespace in the string is preserved.\nSee note 8 below about using the redirection feature with list-type stags, shortcuts or\nwhen using wildcards in tag names.\n\nSee \"COPYING EXAMPLES\" for examples using -tagsFromFile.\n\nNotes:\n\n1) Some tags (generally tags which may affect the appearance of the image) are\nconsidered \"Unsafe\" to write, and are only copied if specified explicitly (ie. no\nwildcards).  See the tag name documentation for more details about \"Unsafe\" tags.\n\n2) Be aware of the difference between excluding a tag from being copied (--TAG), and\ndeleting a tag (-TAG=).  Excluding a tag prevents it from being copied to the\ndestination image, but deleting will remove a pre-existing tag from the image.\n\n3) The maker note information is copied as a block, so it isn't affected like other\ninformation by subsequent tag assignments on the command line, and individual makernote\ntags may not be excluded from a block copy.  Also, since the PreviewImage referenced\nfrom the maker notes may be rather large, it is not copied, and must be transferred\nseparately if desired.\n\n4) The order of operations is to copy all specified tags at the point of the\n-tagsFromFile option in the command line.  Any tag assignment to the right of the\n-tagsFromFile option is made after all tags are copied.  For example, new tag values are\nset in the order One, Two, Three then Four with this command:\n\nexiftool -One=1 -tagsFromFile s.jpg -Two -Four=4 -Three d.jpg\n\nThis is significant in the case where an overlap exists between the copied and assigned\ntags because later operations may override earlier ones.\n\n5) The normal behaviour of copied tags differs from that of assigned tags for list-type\ntags and conditional replacements because each copy operation on a tag overrides any\nprevious operations.  While this avoids duplicate list items when copying groups of tags\nfrom a file containing redundant information, it also prevents values of different tags\nfrom being copied into the same list when this is the intent.  So a -addTagsFromFile\noption is provided which allows copying of multiple tags into the same list.  eg)\n\nexiftool -addtagsfromfile @ '-subject<make' '-subject<model' ...\n\nSimilarly, -addTagsFromFile must be used when conditionally replacing a tag to prevent\noverriding earlier conditions.\n\nOther than these differences, the -tagsFromFile and -addTagsFromFile options are\nequivalent.\n\n6) The -a option (allow duplicate tags) is always in effect when copying tags from\nSRCFILE, but the highest priority tag is always copied last so it takes precedence.\n\n7) Structured tags are copied by default when copying tags.  See the -struct option for\ndetails.\n\n8) With the redirection feature, copying a tag directly (ie.  \"'-DSTTAG<SRCTAG'\") is not\nthe same as interpolating its value inside a string (ie. \"'-DSTTAG<$SRCTAG'\") for list-\ntype tags, shortcut tags, tag names containing wildcards, or UserParam variables.  When\ncopying directly, the values of each matching source tag are copied individually to the\ndestination tag (as if they were separate assignments).  However, when interpolated\ninside a string, list items and the values of shortcut tags are concatenated (with a\nseparator set by the -sep option), and wildcards are not allowed.  Also, UserParam\nvariables are available only when interpolated in a string.  Another difference is that\na minor warning is generated if a tag doesn't exist when interpolating its value in a\nstring (with \"$\"), but isn't when copying the tag directly.\n\nFinally, the behaviour is different when a destination tag or group of \"All\" is used.\nWhen copying directly, a destination group and/or tag name of \"All\" writes to the same\nfamily 1 group and/or tag name as the source.  But when interpolated in a string, the\nidentity of the source tags are lost and the value is written to all possible\ngroups/tags.  For example, the string form must be used in the following command since\nthe intent is to set the value of all existing date/time tags from \"CreateDate\":\n\nexiftool '-time:all<$createdate' -wm w FILE\n\n#### -x -exclude\n\nExclude the specified tag.  There may be multiple -x options.  This has the same effect\nas --TAG on the command line.  See the --TAG documentation above for a complete\ndescription.\n\nInput-output text formatting\n\nNote that trailing spaces are removed from extracted values for most output text formats.\nThe exceptions are -b, -csv, -j and -X.\n\n#### -args -argFormat\n\nOutput information in the form of exiftool arguments, suitable for use with the -@\noption when writing.  May be combined with the -G option to include group names.  This\nfeature may be used to effectively copy tags between images, but allows the metadata to\nbe altered by editing the intermediate file (\"out.args\" in this example):\n\nexiftool -args -G1 --filename --directory src.jpg > out.args\nexiftool -@ out.args -sep ', ' dst.jpg\n\nNote:  Be careful when copying information with this technique since it is easy to write\ntags which are normally considered \"Unsafe\".  For instance, the FileName and Directory\ntags are excluded in the example above to avoid renaming and moving the destination\nfile.  Also note that the second command above will produce warning messages for any\ntags which are not writable.\n\nAs well, the -sep option should be used as in the second command above to maintain\nseparate list items when writing metadata back to image files, and the -struct option\nmay be used when extracting to preserve structured XMP information.\n\n#### -b --b -binary --binary\n\nOutput requested metadata in binary format without tag names or descriptions (-b or\n-binary).  This option is mainly used for extracting embedded images or other binary\ndata, but it may also be useful for some text strings since control characters (such as\nnewlines) are not replaced by '.' as they are in the default output.  By default, list\nitems are separated by a newline when extracted with the -b option, but this may be\nchanged (see the -sep option for details).  May be combined with -j, -php or -X to\nextract binary data in JSON, PHP or XML format, but note that \"Unsafe\" tags are not\nextracted as binary unless they are specified explicitly or the API RequestAll option is\nset to 3 or higher.\n\nWith a leading double dash (--b or --binary), tags which contain binary data are\nsuppressed in the output when reading.\n\n#### -c -coordFormat\n\nSet the print format for GPS coordinates.  FMT uses the same syntax as a \"printf\" format\nstring.  The specifiers correspond to degrees, minutes and seconds in that order, but\nminutes and seconds are optional.  For example, the following table gives the output for\nthe same coordinate using various formats:\n\nFMT                  Output\n-------------------    ------------------\n\"%d deg %d' %.2f\"\\\"    54 deg 59' 22.80\"  (default for reading)\n\"%d %d %.8f\"           54 59 22.80000000  (default for copying)\n\"%d deg %.4f min\"      54 deg 59.3800 min\n\"%.6f degrees\"         54.989667 degrees\n\nNotes:\n\n1) To avoid loss of precision, the default coordinate format is different when copying\ntags using the -tagsFromFile option.\n\n2) If the hemisphere is known, a reference direction (N, S, E or W) is appended to each\nprinted coordinate, but adding a \"+\" to the format specifier (eg. \"%+.6f\") prints a\nsigned coordinate instead.\n\n3) This print formatting may be disabled with the -n option to extract coordinates as\nsigned decimal degrees.\n\n#### -charset\n\nIf TYPE is \"ExifTool\" or not specified, this option sets the ExifTool character encoding\nfor output tag values when reading and input values when writing, with a default of\n\"UTF8\".  If no CHARSET is given, a list of available character sets is returned.  Valid\nCHARSET values are:\n\nCHARSET     Alias(es)        Description\n----------  ---------------  ----------------------------------\nUTF8        cp65001, UTF-8   UTF-8 characters (default)\nLatin       cp1252, Latin1   Windows Latin1 (West European)\nLatin2      cp1250           Windows Latin2 (Central European)\nCyrillic    cp1251, Russian  Windows Cyrillic\nGreek       cp1253           Windows Greek\nTurkish     cp1254           Windows Turkish\nHebrew      cp1255           Windows Hebrew\nArabic      cp1256           Windows Arabic\nBaltic      cp1257           Windows Baltic\nVietnam     cp1258           Windows Vietnamese\nThai        cp874            Windows Thai\nDOSLatinUS  cp437            DOS Latin US\nDOSLatin1   cp850            DOS Latin1\nDOSCyrillic cp866            DOS Cyrillic\nMacRoman    cp10000, Roman   Macintosh Roman\nMacLatin2   cp10029          Macintosh Latin2 (Central Europe)\nMacCyrillic cp10007          Macintosh Cyrillic\nMacGreek    cp10006          Macintosh Greek\nMacTurkish  cp10081          Macintosh Turkish\nMacRomanian cp10010          Macintosh Romanian\nMacIceland  cp10079          Macintosh Icelandic\nMacCroatian cp10082          Macintosh Croatian\n\nTYPE may be \"FileName\" to specify the encoding of file names on the command line (ie.\nFILE arguments).  In Windows, this triggers use of wide-character i/o routines, thus\nproviding support for Unicode file names.  See the \"WINDOWS UNICODE FILE NAMES\" section\nbelow for details.\n\nOther values of TYPE listed below are used to specify the internal encoding of various\nmeta information formats.\n\nTYPE       Description                                  Default\n---------  -------------------------------------------  -------\nEXIF       Internal encoding of EXIF \"ASCII\" strings    (none)\nID3        Internal encoding of ID3v1 information       Latin\nIPTC       Internal IPTC encoding to assume when        Latin\nIPTC:CodedCharacterSet is not defined\nPhotoshop  Internal encoding of Photoshop IRB strings   Latin\nQuickTime  Internal encoding of QuickTime strings       MacRoman\nRIFF       Internal encoding of RIFF strings            0\n\nSee <https://exiftool.org/faq.html#Q10> for more information about coded character sets,\nand the Image::ExifTool Options for more details about the -charset settings.\n\n#### -csv\n\nExport information in CSV format, or import information if CSVFILE is specified.  When\nimporting, the CSV file must be in exactly the same format as the exported file.  The\nfirst row of the CSVFILE must be the ExifTool tag names (with optional group names) for\neach column of the file, and values must be separated by commas.  A special \"SourceFile\"\ncolumn specifies the files associated with each row of information (and a SourceFile of\n\"*\" may be used to define default tags to be imported for all files which are combined\nwith any tags specified for the specific SourceFile processed). The -csvDelim option may\nbe used to change the input/output field delimiter if something other than a comma is\nrequired.\n\nThe following examples demonstrate basic use of the -csv option:\n\n# generate CSV file with common tags from all images in a directory\nexiftool -common -csv dir > out.csv\n\n# update metadata for all images in a directory from CSV file\nexiftool -csv=a.csv dir\n\nEmpty values are ignored when importing (unless the -f option is used and the API\nMissingTagValue is set to an empty string, in which case the tag is deleted).  Also,\nFileName and Directory columns are ignored if they exist (ie. ExifTool will not attempt\nto write these tags with a CSV import).  To force a tag to be deleted, use the -f option\nand set the value to \"-\" in the CSV file (or to the MissingTagValue if this API option\nwas used).  Multiple databases may be imported in a single command.\n\nWhen exporting a CSV file, the -g or -G option adds group names to the tag headings.  If\nthe -a option is used to allow duplicate tag names, the duplicate tags are only included\nin the CSV output if the column headings are unique.  Adding the -G4 option ensures a\nunique column heading for each tag.  The -b option may be added to output binary data,\nencoded in base64 if necessary (indicated by ASCII \"base64:\" as the first 7 bytes of the\nvalue).  Values may also be encoded in base64 if the -charset option is used and the\nvalue contains invalid characters.\n\nWhen exporting specific tags, the CSV columns are arranged in the same order as the\nspecified tags provided the column headings exactly match the specified tag names,\notherwise the columns are sorted in alphabetical order.\n\nWhen importing from a CSV file, only files specified on the command line are processed.\nAny extra entries in the CSV file are ignored.\n\nList-type tags are stored as simple strings in a CSV file, but the -sep option may be\nused to split them back into separate items when importing.\n\nSpecial feature:  -csv+=CSVFILE may be used to add items to existing lists.  This\naffects only list-type tags.  Also applies to the -j option.\n\nNote that this option is fundamentally different than all other output format options\nbecause it requires information from all input files to be buffered in memory before the\noutput is written.  This may result in excessive memory usage when processing a very\nlarge number of files with a single command.  Also, it makes this option incompatible\nwith the -w option.  When processing a large number of files, it is recommended to\neither use the JSON (-j) or XML (-X) output format, or use -p to generate a fixed-column\nCSV file instead of using the -csv option.\n\n#### -csvDelim\n\nSet the delimiter for separating CSV entries for CSV file input/output via the -csv\noption.  STR may contain \"\\t\", \"\\n\", \"\\r\" and \"\\\\\" to represent TAB, LF, CR and '\\'\nrespectively.  A double quote is not allowed in the delimiter.  Default is ','.\n\n#### -d -dateFormat\n\nSet the format for date/time tag values.  The FMT string may contain formatting codes\nbeginning with a percent character (\"%\") to represent the various components of a\ndate/time value.  The specifics of the FMT syntax are system dependent -- consult the\n\"strftime\" man page on your system for details.  The default format is equivalent to\n\"%Y:%m:%d %H:%M:%S\".  This option has no effect on date-only or time-only tags and\nignores timezone information if present.  ExifTool adds a %f format code to represent\nfractional seconds, and supports an optional width to specify the number of digits after\nthe decimal point (eg. %3f would give something like .437).  Only one -d option may be\nused per command.  Requires POSIX::strptime or Time::Piece for the inversion conversion\nwhen writing.\n\n#### -D -decimal\n\nShow tag ID number in decimal when extracting information.\n\n#### -E -ex -ec -escapeHTML -escapeXML -escapeC\n\nEscape characters in output tag values for HTML (-E), XML (-ex) or C (-ec).  For HTML,\nall characters with Unicode code points above U+007F are escaped as well as the\nfollowing 5 characters: & (&amp;) ' (&#39;) \" (&quot;) > (&gt;) and < (&lt;).  For XML,\nonly these 5 characters are escaped.  The -E option is implied with -h, and -ex is\nimplied with -X.  For C, all control characters and the backslash are escaped.  The\ninverse conversion is applied when writing tags.\n\n#### -f -forcePrint\n\nForce printing of tags even if their values are not found.  This option only applies\nwhen specific tags are requested on the command line (ie. not with wildcards or by\n\"-all\").  With this option, a dash (\"-\") is printed for the value of any missing tag,\nbut the dash may be changed via the API MissingTagValue option.  May also be used to add\na 'flags' attribute to the -listx output, or to allow tags to be deleted when writing\nwith the -csv=CSVFILE feature.\n\n#### -g -groupHeadings\n\nOrganize output by tag group.  NUM specifies a group family number, and may be 0\n(general location), 1 (specific location), 2 (category), 3 (document number), 4\n(instance number), 5 (metadata path), 6 (EXIF/TIFF format) or 7 (tag ID).  -g0 is\nassumed if a family number is not specified.  May be combined with other options to add\ngroup names to the output.  Multiple families may be specified by separating them with\ncolons.  By default the resulting group name is simplified by removing any leading\n\"Main:\" and collapsing adjacent identical group names, but this can be avoided by\nplacing a colon before the first family number (eg. -g:3:1).  Use the -listg option to\nlist group names for a specified family.  The API SavePath and SaveFormat options are\nautomatically enabled if the respective family 5 or 6 group names are requested.  See\nthe API GetGroup documentation for more information.\n\n#### -G -groupNames\n\nSame as -g but print group name for each tag.  -G0 is assumed if NUM is not specified.\nMay be combined with a number of other options to add group names to the output.  Note\nthat NUM may be added wherever -G is mentioned in the documentation.  See the -g option\nabove for details.\n\n#### -h -htmlFormat\n\nUse HTML table formatting for output.  Implies the -E option.  The formatting options\n-D, -H, -g, -G, -l and -s may be used in combination with -h to influence the HTML\nformat.\n\n#### -H -hex\n\nShow tag ID number in hexadecimal when extracting information.\n\n#### -htmlDump\n\nGenerate a dynamic web page containing a hex dump of the EXIF information.  This can be\na very powerful tool for low-level analysis of EXIF information.  The -htmlDump option\nis also invoked if the -v and -h options are used together.  The verbose level controls\nthe maximum length of the blocks dumped.  An OFFSET may be given to specify the base for\ndisplayed offsets.  If not provided, the EXIF/TIFF base offset is used.  Use -htmlDump0\nfor absolute offsets.  Currently only EXIF/TIFF and JPEG information is dumped, but the\n-u option can be used to give a raw hex dump of other file formats.\n\n#### -j -json\n\nUse JSON (JavaScript Object Notation) formatting for console output, or import JSON file\nif JSONFILE is specified.  This option may be combined with -g to organize the output\ninto objects by group, or -G to add group names to each tag.  List-type tags with\nmultiple items are output as JSON arrays unless -sep is used.  By default XMP structures\nare flattened into individual tags in the JSON output, but the original structure may be\npreserved with the -struct option (this also causes all list-type XMP tags to be output\nas JSON arrays, otherwise single-item lists would be output as simple strings).  The -a\noption is implied when -json is used, but entries with identical JSON names are\nsuppressed in the output.  (-G4 may be used to ensure that all tags have unique JSON\nnames.)  Adding the -D or -H option changes tag values to JSON objects with \"val\" and\n\"id\" fields, and adding -l adds a \"desc\" field, and a \"num\" field if the numerical value\nis different from the converted \"val\".  The -b option may be added to output binary\ndata, encoded in base64 if necessary (indicated by ASCII \"base64:\" as the first 7 bytes\nof the value), and -t may be added to include tag table information (see -t for\ndetails).  The JSON output is UTF-8 regardless of any -L or -charset option setting, but\nthe UTF-8 validation is disabled if a character set other than UTF-8 is specified.\n\nIf JSONFILE is specified, the file is imported and the tag definitions from the file are\nused to set tag values on a per-file basis.  The special \"SourceFile\" entry in each JSON\nobject associates the information with a specific target file.  An object with a missing\nSourceFile or a SourceFile of \"*\" defines default tags for all target files which are\ncombined with any tags specified for the specific SourceFile processed.  The imported\nJSON file must have the same format as the exported JSON files with the exception that\nthe -g option is not compatible with the import file format (use -G instead).\nAdditionally, tag names in the input JSON file may be suffixed with a \"#\" to disable\nprint conversion.\n\nUnlike CSV import, empty values are not ignored, and will cause an empty value to be\nwritten if supported by the specific metadata type.  Tags are deleted by using the -f\noption and setting the tag value to \"-\" (or to the MissingTagValue setting if this API\noption was used).  Importing with -j+=JSONFILE causes new values to be added to existing\nlists.\n\n#### -l -long\n\nUse long 2-line Canon-style output format.  Adds a description and unconverted value (if\nit is different from the converted value) to the XML, JSON or PHP output when -X, -j or\n-php is used.  May also be combined with -listf, -listr or -listwf to add descriptions\nof the file types.\n\n#### -L -latin\n\nUse Windows Latin1 encoding (cp1252) for output tag values instead of the default UTF-8.\nWhen writing, -L specifies that input text values are Latin1 instead of UTF-8.\nEquivalent to \"-charset latin\".\n\n#### -lang\n\nSet current language for tag descriptions and converted values.  LANG is \"de\", \"fr\",\n\"ja\", etc.  Use -lang with no other arguments to get a list of available languages.  The\ndefault language is \"en\" if -lang is not specified.  Note that tag/group names are\nalways English, independent of the -lang setting, and translation of warning/error\nmessages has not yet been implemented.  May also be combined with -listx to output\ndescriptions in one language only.\n\nBy default, ExifTool uses UTF-8 encoding for special characters, but the the -L or\n-charset option may be used to invoke other encodings.  Note that ExifTool uses\nUnicode::LineBreak if available to help preserve the column alignment of the plain text\noutput for languages with a variable-width character set.\n\nCurrently, the language support is not complete, but users are welcome to help improve\nthis by submitting their own translations.  To submit a translation, follow these steps\n(you must have Perl installed for this):\n\n1. Download and unpack the latest Image-ExifTool full distribution.\n\n2. 'cd' into the Image-ExifTool directory.\n\n3. Run this command to make an XML file of the desired tags (eg. EXIF):\n\n./exiftool -listx -exif:all > out.xml\n\n4. Copy this text into a file called 'import.pl' in the exiftool directory:\n\npush @INC, 'lib';\nrequire Image::ExifTool::TagInfoXML;\nmy $file = shift or die \"Expected XML file name\\n\";\n$Image::ExifTool::TagInfoXML::makeMissing = shift;\nImage::ExifTool::TagInfoXML::BuildLangModules($file,8);\n\n5. Run the 'import.pl' script to Import the XML file, generating the 'MISSING' entries\nfor your language (eg. Russian):\n\nperl import.pl out.xml ru\n\n6. Edit the generated language module lib/Image/ExifTool/Lang/ru.pm, and search and\nreplace all 'MISSING' strings in the file with your translations.\n\n7. Email the module ('ru.pm' in this example) to philharvey66 at gmail.com\n\n8. Thank you!!\n\n#### -listItem\n\nFor list-type tags, this causes only the item with the specified index to be extracted.\nINDEX is 0 for the first item in the list.  Negative indices may also be used to\nreference items from the end of the list.  Has no effect on single-valued tags.  Also\napplies to tag values when copying from a tag, and in -if conditions.\n\n#### -n --printConv\n\nDisable print conversion for all tags.  By default, extracted values are converted to a\nmore human-readable format, but the -n option disables this conversion, revealing the\nmachine-readable values.  For example:\n\n> exiftool -Orientation -S a.jpg\nOrientation: Rotate 90 CW\n> exiftool -Orientation -S -n a.jpg\nOrientation: 6\n\nThe print conversion may also be disabled on a per-tag basis by suffixing the tag name\nwith a \"#\" character:\n\n> exiftool -Orientation# -Orientation -S a.jpg\nOrientation: 6\nOrientation: Rotate 90 CW\n\nThese techniques may also be used to disable the inverse print conversion when writing.\nFor example, the following commands all have the same effect:\n\n> exiftool -Orientation='Rotate 90 CW' a.jpg\n> exiftool -Orientation=6 -n a.jpg\n> exiftool -Orientation#=6 a.jpg\n\n#### -p -printFormat\n\nPrint output in the format specified by the given file or string.  The argument is\ninterpreted as a string unless a file of that name exists, in which case the string is\nloaded from the contents of the file.  Tag names in the format file or string begin with\na \"$\" symbol and may contain leading group names and/or a trailing \"#\" (to disable print\nconversion).  Case is not significant.  Braces \"{}\" may be used around the tag name to\nseparate it from subsequent text.  Use $$ to represent a \"$\" symbol, and $/ for a\nnewline.\n\nMultiple -p options may be used, each contributing a line (or more) of text to the\noutput.  Lines beginning with \"#[HEAD]\" and \"#[TAIL]\" are output before the first\nprocessed file and after the last processed file respectively.  Lines beginning with\n\"#[SECT]\" and \"#[ENDS]\" are output before and after each section of files.  A section is\ndefined as a group of consecutive files with the same section header (eg. files are\ngrouped by directory if \"#[SECT]\" contains $directory).  Lines beginning with \"#[BODY]\"\nand lines not beginning with \"#\" are output for each processed file.  Lines beginning\nwith \"#[IF]\" are not output, but all BODY lines are skipped if any tag on an IF line\ndoesn't exist.  Other lines beginning with \"#\" are ignored.  (To output a line beginning\nwith \"#\", use \"#[BODY]#\".)  For example, this format file:\n\n# this is a comment line\n#[HEAD]-- Generated by ExifTool $exifToolVersion --\nFile: $FileName - $DateTimeOriginal\n(f/$Aperture, ${ShutterSpeed}s, ISO $EXIF:ISO)\n#[TAIL]-- end --\n\nwith this command:\n\nexiftool -p test.fmt a.jpg b.jpg\n\nproduces output like this:\n\n-- Generated by ExifTool 12.40 --\nFile: a.jpg - 2003:10:31 15:44:19\n(f/5.6, 1/60s, ISO 100)\nFile: b.jpg - 2006:05:23 11:57:38\n(f/8.0, 1/13s, ISO 100)\n-- end --\n\nThe values of List-type tags with multiple items and Shortcut tags representing multiple\ntags are joined according the the -sep option setting when interpolated in the string.\n\nWhen -ee (-extractEmbedded) is combined with -p, embedded documents are effectively\nprocessed as separate input files.\n\nIf a specified tag does not exist, a minor warning is issued and the line with the\nmissing tag is not printed.  However, the -f option may be used to set the value of\nmissing tags to '-' (but this may be configured via the API MissingTagValue option), or\nthe -m option may be used to ignore minor warnings and leave the missing values empty.\nAlternatively, -q -q may be used to simply suppress the warning messages.\n\nThe \"Advanced formatting feature\" may be used to modify the values of individual tags\nwith the -p option.\n\n#### -php -g -G -D -H -l -sep -struct\n\nwith -php, and duplicate tags are handled in the same way as with the -json option.  As\nwell, the -b option may be added to output binary data, and -t may be added to include\ntag table information (see -t for details).  Here is a simple example showing how this\ncould be used in a PHP script:\n\n<?php\neval('$array=' . `exiftool -php -q image.jpg`);\nprintr($array);\n?>\n\n#### -s -short\n\nShort output format.  Prints tag names instead of descriptions.  Add NUM or up to 3 -s\noptions for even shorter formats:\n\n-s1 or -s        - print tag names instead of descriptions\n-s2 or -s -s     - no extra spaces to column-align values\n-s3 or -s -s -s  - print values only (no tag names)\n\nAlso effective when combined with -t, -h, -X or -listx options.\n\n#### -S -veryShort\n\nVery short format.  The same as -s2 or two -s options.  Tag names are printed instead of\ndescriptions, and no extra spaces are added to column-align values.\n\n#### -sep -separator\n\nSpecify separator string for items in list-type tags.  When reading, the default is to\njoin list items with \", \".  When writing, this option causes values assigned to list-\ntype tags to be split into individual items at each substring matching STR (otherwise\nthey are not split by default).  Space characters in STR match zero or more whitespace\ncharacters in the value.\n\nNote that an empty separator (\"\") is allowed, and will join items with no separator when\nreading, or split the value into individual characters when writing.\n\nFor pure binary output (-b used without -j, -php or -X), the first -sep option specifies\na list-item separator, and a second -sep option specifies a terminator for the end of\nthe list (or after each value if not a list).  In these strings, \"\\n\", \"\\r\" and \"\\t\" may\nbe used to represent a newline, carriage return and tab respectively.  By default,\nbinary list items are separated by a newline, and no terminator is added.\n\n#### -sort --sort\n\nSort output by tag description, or by tag name if the -s option is used.  When sorting\nby description, the sort order will depend on the -lang option setting.  Without the\n-sort option, tags appear in the order they were specified on the command line, or if\nnot specified, the order they were extracted from the file.  By default, tags are\norganized by groups when combined with the -g or -G option, but this grouping may be\ndisabled with --sort.\n\n#### -struct --struct\n\nOutput structured XMP information instead of flattening to individual tags.  This option\nworks well when combined with the XML (-X) and JSON (-j) output formats.  For other\noutput formats, XMP structures and lists are serialized into the same format as when\nwriting structured information (see <https://exiftool.org/struct.html> for details).\nWhen copying, structured tags are copied by default unless --struct is used to disable\nthis feature (although flattened tags may still be copied by specifying them\nindividually unless -struct is used).  These options have no effect when assigning new\nvalues since both flattened and structured tags may always be used when writing.\n\n#### -t -tab\n\nOutput a tab-delimited list of description/values (useful for database import).  May be\ncombined with -s to print tag names instead of descriptions, or -S to print tag values\nonly, tab-delimited on a single line.  The -t option may be combined with -j, -php or -X\nto add tag table information (\"table\", tag \"id\", and \"index\" for cases where multiple\nconditional tags exist with the same ID).\n\n#### -T -table\n\nOutput tag values in table form.  Equivalent to -t -S -q -f.\n\n#### -v -verbose\n\nPrint verbose messages.  NUM specifies the level of verbosity in the range 0-5, with\nhigher numbers being more verbose.  If NUM is not given, then each -v option increases\nthe level of verbosity by 1.  With any level greater than 0, most other options are\nignored and normal console output is suppressed unless specific tags are extracted.\nUsing -v0 causes the console output buffer to be flushed after each line (which may be\nuseful to avoid delays when piping exiftool output), and prints the name of each\nprocessed file when writing.  Also see the -progress option.\n\n#### -w -textOut\n\nWrite console output to files with names ending in EXT, one for each source file.  The\noutput file name is obtained by replacing the source file extension (including the '.')\nwith the specified extension (and a '.' is added to the start of EXT if it doesn't\nalready contain one).  Alternatively, a FMT string may be used to give more control over\nthe output file name and directory.  In the format string, %d, %f and %e represent the\ndirectory, filename and extension of the source file, and %c represents a copy number\nwhich is automatically incremented if the file already exists.  %d includes the trailing\n'/' if necessary, but %e does not include the leading '.'.  For example:\n\n-w %d%f.txt       # same effect as \"-w txt\"\n-w dir/%f%e.out  # write files to \"dir\" as \"FILEEXT.out\"\n-w dir2/%d%f.txt  # write to \"dir2\", keeping dir structure\n-w a%c.txt        # write to \"a.txt\" or \"a1.txt\" or \"a2.txt\"...\n\nExisting files will not be changed unless an exclamation point is added to the option\nname (ie. -w! or -textOut!) to overwrite the file, or a plus sign (ie. -w+ or -textOut+)\nto append to the existing file.  Both may be used (ie. -w+! or -textOut+!) to overwrite\noutput files that didn't exist before the command was run, and append the output from\nmultiple source files.  For example, to write one output file for all source files in\neach directory:\n\nexiftool -filename -createdate -T -w+! %d/out.txt -r DIR\n\nCapitalized format codes %D, %F, %E and %C provide slightly different alternatives to\nthe lower case versions.  %D does not include the trailing '/', %F is the full filename\nincluding extension, %E includes the leading '.', and %C increments the count for each\nprocessed file (see below).\n\nNotes:\n\n1) In a Windows BAT file the \"%\" character is represented by \"%%\", so an argument like\n\"%d%f.txt\" is written as \"%%d%%f.txt\".\n\n2) If the argument for -w does not contain a valid format code (eg. %f), then it is\ninterpreted as a file extension, but there are three different ways to create a single\noutput file from multiple source files:\n\n# 1. Shell redirection\nexiftool FILE1 FILE2 ... > out.txt\n\n# 2. With the -w option and a zero-width format code\nexiftool -w+! %0fout.txt FILE1 FILE2 ...\n\n# 3. With the -W option (see the -W option below)\nexiftool -W+! out.txt FILE1 FILE2 ...\n\nAdvanced features:\n\nA substring of the original file name, directory or extension may be taken by specifying\na field width immediately following the '%' character.  If the width is negative, the\nsubstring is taken from the end.  The substring position (characters to ignore at the\nstart or end of the string) may be given by a second optional value after a decimal\npoint.  For example:\n\nInput File Name     Format Specifier    Output File Name\n----------------    ----------------    ----------------\nPicture-123.jpg     %7f.txt             Picture.txt\nPicture-123.jpg     %-.4f.out           Picture.out\nPicture-123.jpg     %7f.%-3f            Picture.123\nPicture-123a.jpg    Meta%-3.1f.txt      Meta123.txt\n\n(Note that special characters may have a width of greater than one.)\n\nFor %d and %D, the field width/position specifiers may be applied to the directory\nlevels instead of substring position by using a colon instead of a decimal point in the\nformat specifier.  For example:\n\nSource Dir     Format   Result       Notes\n------------   ------   ----------   ------------------\npics/2012/02   %2:d     pics/2012/   take top 2 levels\npics/2012/02   %-:1d    pics/2012/   up one directory level\npics/2012/02   %:1d     2012/02/     ignore top level\npics/2012/02   %1:1d    2012/        take 1 level after top\npics/2012/02   %-1:D    02           bottom level folder name\n/Users/phil    %:2d     phil/        ignore top 2 levels\n\n(Note that the root directory counts as one level when an absolute path is used as in\nthe last example above.)\n\nFor %c, these modifiers have a different effects.  If a field width is given, the copy\nnumber is padded with zeros to the specified width.  A leading '-' adds a dash before\nthe copy number, and a '+' adds an underline.  By default, the copy number is omitted\nfrom the first file of a given name, but this can be changed by adding a decimal point\nto the modifier.  For example:\n\n-w A%-cZ.txt      # AZ.txt, A-1Z.txt, A-2Z.txt ...\n-w B%5c.txt       # B.txt, B00001.txt, B00002.txt ...\n-w C%.c.txt       # C0.txt, C1.txt, C2.txt ...\n-w D%-.c.txt      # D-0.txt, D-1.txt, D-2.txt ...\n-w E%-.4c.txt     # E-0000.txt, E-0001.txt, E-0002.txt ...\n-w F%-.4nc.txt    # F-0001.txt, F-0002.txt, F-0003.txt ...\n-w G%+c.txt       # G.txt, G1.txt G2.txt ...\n-w H%-lc.txt      # H.txt, H-b.txt, H-c.txt ...\n-w I.%.3uc.txt    # I.AAA.txt, I.AAB.txt, I.AAC.txt ...\n\nA special feature allows the copy number to be incremented for each processed file by\nusing %C (upper case) instead of %c.  This allows a sequential number to be added to\noutput file names, even if the names are different.  For %C, a copy number of zero is\nnot omitted as it is with %c.  A leading '-' causes the number to be reset at the start\nof each new directory, and '+' has no effect.  The number before the decimal place gives\nthe starting index, the number after the decimal place gives the field width.  The\nfollowing examples show the output filenames when used with the command \"exiftool\nrose.jpg star.jpg jet.jpg ...\":\n\n-w %C%f.txt       # 0rose.txt, 1star.txt, 2jet.txt\n-w %f-%10C.txt    # rose-10.txt, star-11.txt, jet-12.txt\n-w %.3C-%f.txt    # 000-rose.txt, 001-star.txt, 002-jet.txt\n-w %57.4C%f.txt   # 0057rose.txt, 0058star.txt, 0059jet.txt\n\nAll format codes may be modified by 'l' or 'u' to specify lower or upper case\nrespectively (ie. %le for a lower case file extension).  When used to modify %c or %C,\nthe numbers are changed to an alphabetical base (see example H above).  Also, %c and %C\nmay be modified by 'n' to count using natural numbers starting from 1, instead of 0 (see\nexample F above).\n\nThis same FMT syntax is used with the -o and -tagsFromFile options, although %c and %C\nare only valid for output file names.\n\n#### -W -tagOut\n\nThis enhanced version of the -w option allows a separate output file to be created for\neach extracted tag.  See the -w option documentation above for details of the basic\nfunctionality.  Listed here are the differences between -W and -w:\n\n1) With -W, a new output file is created for each extracted tag.\n\n2) -W supports four additional format codes:  %t, %g and %s represent the tag name,\ngroup name, and suggested extension for the output file (based on the format of the\ndata), and %o represents the value of the OriginalRawFileName or OriginalFileName tag\nfrom the input file (including extension).  The %g code may be followed by a single\ndigit to specify the group family number (eg. %g1), otherwise family 0 is assumed.  The\nsubstring width/position/case specifiers may be used with these format codes in exactly\nthe same way as with %f and %e.\n\n3) The argument for -W is interpreted as a file name if it contains no format codes.\n(For -w, this would be a file extension.)  This change allows a simple file name to be\nspecified, which, when combined with the append feature, provides a method to write\nmetadata from multiple source files to a single output file without the need for shell\nredirection.  For example, the following pairs of commands give the same result:\n\n# overwriting existing text file\nexiftool test.jpg > out.txt     # shell redirection\nexiftool test.jpg -W+! out.txt  # equivalent -W option\n\n# append to existing text file\nexiftool test.jpg >> out.txt    # shell redirection\nexiftool test.jpg -W+ out.txt   # equivalent -W option\n\n4) Adding the -v option to -W sends a list of the tags and output file names to the\nconsole instead of giving a verbose dump of the entire file.  (Unless appending all\noutput to one file for each source file by using -W+ with an output file FMT that does\nnot contain %t, %g, %s or %o.)\n\n5) Individual list items are stored in separate files when -W is combined with -b, but\nnote that for separate files to be created %c or %C must be used in FMT to give the\nfiles unique names.\n\n#### -Wext --Wext -tagOutExt\n\nThis option is used to specify the type of output file(s) written by the -W option.  An\noutput file is written only if the suggested extension matches EXT.  Multiple -Wext\noptions may be used to write more than one type of file.  Use --Wext to write all but\nthe specified type(s).\n\n#### -X -xmlFormat\n\nUse ExifTool-specific RDF/XML formatting for console output.  Implies the -a option, so\nduplicate tags are extracted.  The formatting options -b, -D, -H, -l, -s, -sep, -struct\nand -t may be used in combination with -X to affect the output, but note that the tag ID\n(-D, -H and -t), binary data (-b) and structured output (-struct) options are not\neffective for the short output (-s). Another restriction of -s is that only one tag with\na given group and name may appear in the output.  Note that the tag ID options (-D, -H\nand -t) will produce non-standard RDF/XML unless the -l option is also used.\n\nBy default, -X outputs flattened tags, so -struct should be added if required to\npreserve XMP structures.  List-type tags with multiple values are formatted as an RDF\nBag, but they are combined into a single string when -s or -sep is used.  Using -L\nchanges the XML encoding from \"UTF-8\" to \"windows-1252\".  Other -charset settings change\nthe encoding only if there is a corresponding standard XML character set.  The -b option\ncauses binary data values to be written, encoded in base64 if necessary.  The -t option\nadds tag table information to the output (see -t for details).\n\nNote:  This output is NOT the same as XMP because it uses dynamically-generated property\nnames corresponding to the ExifTool tag names with ExifTool family 1 group names as\nnamespaces, and not the standard XMP properties and namespaces.  To write XMP instead,\nuse the -o option with an XMP extension for the output file.\n\nProcessing control\n\n#### -a --a -duplicates --duplicates\n\nAllow (-a) or suppress (--a) duplicate tag names to be extracted.  By default, duplicate\ntags are suppressed when reading unless the -ee or -X options are used or the Duplicates\noption is enabled in the configuration file. This option has an affect when writing only\nto allow duplicate Warning messages to be shown.  Duplicate tags are always extracted\nwhen copying.\n\n#### -e --composite\n\nExtract existing tags only -- don't generate composite tags.\n\n#### -ee -extractEmbedded\n\nExtract information from embedded documents in EPS files, embedded EPS information and\nJPEG and Jpeg2000 images in PDF files, embedded MPF images in JPEG and MPO files,\nstreaming metadata in AVCHD videos, and the resource fork of Mac OS files.  Implies the\n-a option.  Use -g3 or -G3 to identify the originating document for extracted\ninformation.  Embedded documents containing sub-documents are indicated with dashes in\nthe family 3 group name.  (eg. \"Doc2-3\" is the 3rd sub-document of the 2nd embedded\ndocument.) Note that this option may increase processing time substantially, especially\nfor PDF files with many embedded images or videos with streaming metadata.\n\nWhen used with -ee, the -p option is evaluated for each embedded document as if it were\na separate input file.  This allows, for example, generation of GPS track logs from\ntimed metadata in videos.  See <https://exiftool.org/geotag.html#Inverse> for examples.\n\nSetting NUM to 2 causes the H264 video stream in MP4 videos to be parsed until the first\nSupplemental Enhancement Information (SEI) message is decoded, or 3 to parse the entire\nH624 stream and decode all SEI information.  For M2TS videos, a setting of 3 causes the\nentire file to be parsed in search of unlisted programs which may contain timed GPS.\n\n#### -ext --ext -extension\n\nProcess only files with (-ext) or without (--ext) a specified extension.  There may be\nmultiple -ext and --ext options.  A plus sign may be added (ie. -ext+) to add the\nspecified extension to the normally processed files.  EXT may begin with a leading '.',\nwhich is ignored.  Case is not significant.  \"*\" may be used to process files with any\nextension (or none at all), as in the last three examples:\n\nexiftool -ext JPG DIR             # process only JPG files\nexiftool --ext cr2 --ext dng DIR  # supported files but CR2/DNG\nexiftool -ext+ txt DIR            # supported files plus TXT\nexiftool -ext \"*\" DIR             # process all files\nexiftool -ext \"*\" --ext xml DIR   # process all but XML files\nexiftool -ext \"*\" --ext . DIR     # all but those with no ext\n\nUsing this option has two main advantages over specifying \"*.EXT\" on the command line:\n1) It applies to files in subdirectories when combined with the -r option.  2) The -ext\noption is case-insensitive, which is useful when processing files on case-sensitive\nfilesystems.\n\nNote that all files specified on the command line will be processed regardless of\nextension unless the -ext option is used.\n\n#### -F -fixBase\n\nFix the base for maker notes offsets.  A common problem with some image editors is that\noffsets in the maker notes are not adjusted properly when the file is modified.  This\nmay cause the wrong values to be extracted for some maker note entries when reading the\nedited file.  This option allows an integer OFFSET to be specified for adjusting the\nmaker notes base offset.  If no OFFSET is given, ExifTool takes its best guess at the\ncorrect base.  Note that exiftool will automatically fix the offsets for images which\nstore original offset information (eg. newer Canon models).  Offsets are fixed\npermanently if -F is used when writing EXIF to an image. eg)\n\nexiftool -F -exif:resolutionunit=inches image.jpg\n\n#### -fast\n\nIncrease speed of extracting information.  With -fast (or -fast1), ExifTool will not\nscan to the end of a JPEG image to check for an AFCP or PreviewImage trailer, or past\nthe first comment in GIF images or the audio/video data in WAV/AVI files to search for\nadditional metadata.  These speed benefits are small when reading images directly from\ndisk, but can be substantial if piping images through a network connection.  For more\nsubstantial speed benefits, -fast2 also causes exiftool to avoid extracting any EXIF\nMakerNote information.  -fast3 avoids extracting metadata from the file, and returns\nonly pseudo System tags, but still reads the file header to obtain an educated guess at\nFileType.  -fast4 doesn't even read the file header, and returns only System tags and a\nFileType based on the file extension.  -fast5 also disables generation of the Composite\ntags (like -e).  Has no effect when writing.\n\nNote that a separate -fast setting may be used for evaluation of a -if condition, or\nwhen ordering files with the -fileOrder option.  See the -if and -fileOrder options for\ndetails.\n\n#### -fileOrder\n\nSet file processing order according to the sorted value of the specified TAG.  For\nexample, to process files in order of date:\n\nexiftool -fileOrder DateTimeOriginal DIR\n\nAdditional -fileOrder options may be added for secondary sort keys.  Numbers are sorted\nnumerically, and all other values are sorted alphabetically.  Files missing the\nspecified tag are sorted last.  The sort order may be reversed by prefixing the tag name\nwith a \"-\" (eg.  \"-fileOrder -createdate\").  Print conversion of the sorted values is\ndisabled with the -n option, or a \"#\" appended to the tag name.  Other formatting\noptions (eg. -d) have no effect on the sorted values.  Note that the -fileOrder option\ncan have a large performance impact since it involves an additional processing pass of\neach file, but this impact may be reduced by specifying a NUM for the -fast level used\nduring the metadata-extraction phase.  For example, -fileOrder4 may be used if TAG is a\npseudo System tag.  If multiple -fileOrder options are used, the extraction is done at\nthe lowest -fast level.  Note that files are sorted across directory boundaries if\nmultiple input directories are specified.\n\n#### -i -ignore\n\nIgnore specified directory name.  DIR may be either an individual folder name, or a full\npath.  If a full path is specified, it must match the Directory tag exactly to be\nignored.  Use multiple -i options to ignore more than one directory name.  A special DIR\nvalue of \"SYMLINKS\" (case sensitive) may be specified to avoid recursing into\ndirectories which are symbolic links when the -r option is used.  As well, a value of\n\"HIDDEN\" (case sensitive) may be used to ignore files with names that start with a \".\"\n(ie. hidden files on Unix systems) when scanning a directory.\n\n#### -if\n\nSpecify a condition to be evaluated before processing each FILE.  EXPR is a Perl-like\nlogic expression containing tag names prefixed by \"$\" symbols.  It is evaluated with the\ntags from each FILE in turn, and the file is processed only if the expression returns\ntrue.  Unlike Perl variable names, tag names are not case sensitive and may contain a\nhyphen.  As well, tag names may have a leading group names separated by colons, and/or a\ntrailing \"#\" character to disable print conversion.  The expression $GROUP:all evaluates\nto 1 if any tag exists in the specified \"GROUP\", or 0 otherwise (see note 2 below).\nWhen multiple -if options are used, all conditions must be satisfied to process the\nfile.  Returns an exit status of 2 if all files fail the condition.  Below are a few\nexamples:\n\n# extract shutterspeed from all Canon images in a directory\nexiftool -shutterspeed -if '$make eq \"Canon\"' dir\n\n# add one hour to all images created on or after Apr. 2, 2006\nexiftool -alldates+=1 -if '$CreateDate ge \"2006:04:02\"' dir\n\n# set EXIF ISO value if possible, unless it is set already\nexiftool '-exif:iso<iso' -if 'not $exif:iso' dir\n\n# find images containing a specific keyword (case insensitive)\nexiftool -if '$keywords =~ /harvey/i' -filename dir\n\nAdding NUM to the -if option causes a separate processing pass to be executed for\nevaluating EXPR at a -fast level given by NUM (see the -fast option documentation for\ndetails).  Without NUM, only one processing pass is done at the level specified by the\n-fast option.  For example, using -if5 is possible if EXPR uses only pseudo System tags,\nand may significantly speed processing if enough files fail the condition.\n\nThe expression has access to the current ExifTool object through $self, and the\nfollowing special functions are available to allow short-circuiting of the file\nprocessing.  Both functions have a return value of 1.  Case is significant for function\nnames.\n\nEnd()    - end processing after this file\nEndDir() - end processing of files in this directory (not\ncompatible with the B<-fileOrder> option)\n\nNotes:\n\n1) The -n and -b options also apply to tags used in EXPR.\n\n2) Some binary data blocks are not extracted unless specified explicitly.  These tags\nare not available for use in the -if condition unless they are also specified on the\ncommand line.  The alternative is to use the $GROUP:all syntax. (eg. Use $exif:all\ninstead of $exif in EXPR to test for the existence of EXIF tags.)\n\n3) Tags in the string are interpolated the same way as with -p before the expression is\nevaluated.  In this interpolation, $/ is converted to a newline and $$ represents a\nsingle \"$\" symbol (so Perl variables, if used, require a double \"$\").\n\n4) The condition may only test tags from the file being processed.  To process one file\nbased on tags from another, two steps are required.  For example, to process XMP sidecar\nfiles in directory \"DIR\" based on tags from the associated NEF:\n\nexiftool -if EXPR -p '$directory/$filename' -ext nef DIR > nef.txt\nexiftool -@ nef.txt -srcfile %d%f.xmp ...\n\n5) The -a option has no effect on the evaluation of the expression, and the values of\nduplicate tags are accessible only by specifying a group name (such as a family 4\ninstance number, eg. $Copy1:TAG, $Copy2:TAG, etc).\n\n6) A special \"OK\" UserParam is available to test the success of the previous command\nwhen -execute was used, and may be used like any other tag in the condition (ie. \"$OK\").\n\n#### -m -ignoreMinorErrors\n\nIgnore minor errors and warnings.  This enables writing to files with minor errors and\ndisables some validation checks which could result in minor warnings.  Generally, minor\nerrors/warnings indicate a problem which usually won't result in loss of metadata if\nignored.  However, there are exceptions, so ExifTool leaves it up to you to make the\nfinal decision.  Minor errors and warnings are indicated by \"[minor]\" at the start of\nthe message.  Warnings which affect processing when ignored are indicated by \"[Minor]\"\n(with a capital \"M\").  Note that this causes missing values in -tagsFromFile, -p and -if\nstrings to be set to an empty string rather than an undefined value.\n\n#### -o -out\n\nSet the output file or directory name when writing information.  Without this option,\nwhen any \"real\" tags are written the original file is renamed to \"FILEoriginal\" and\noutput is written to FILE.  When writing only FileName and/or Directory \"pseudo\" tags,\n-o causes the file to be copied instead of moved, but directories specified for either\nof these tags take precedence over that specified by the -o option.\n\nOUTFILE may be \"-\" to write to stdout.  The output file name may also be specified using\na FMT string in which %d, %f and %e represent the directory, file name and extension of\nFILE.  Also, %c may be used to add a copy number. See the -w option for FMT string\nexamples.\n\nThe output file is taken to be a directory name if it already exists as a directory or\nif the name ends with '/'.  Output directories are created if necessary.  Existing files\nwill not be overwritten.  Combining the -overwriteoriginal option with -o causes the\noriginal source file to be erased after the output file is successfully written.\n\nA special feature of this option allows the creation of certain types of files from\nscratch, or with the metadata from another type of file.  The following file types may\nbe created using this technique:\n\nXMP, EXIF, EXV, MIE, ICC/ICM, VRD, DR4\n\nThe output file type is determined by the extension of OUTFILE (specified as \"-.EXT\"\nwhen writing to stdout).  The output file is then created from a combination of\ninformation in FILE (as if the -tagsFromFile option was used), and tag values assigned\non the command line.  If no FILE is specified, the output file may be created from\nscratch using only tags assigned on the command line.\n\n#### -overwrite\n\nOverwrite the original FILE (instead of preserving it by adding \"original\" to the file\nname) when writing information to an image.  Caution: This option should only be used if\nyou already have separate backup copies of your image files.  The overwrite is\nimplemented by renaming a temporary file to replace the original.  This deletes the\noriginal file and replaces it with the edited version in a single operation.  When\ncombined with -o, this option causes the original file to be deleted if the output file\nwas successfully written (ie. the file is moved instead of copied).\n\n#### -overwrite\n\nSimilar to -overwriteoriginal except that an extra step is added to allow the original\nfile attributes to be preserved.  For example, on a Mac this causes the original file\ncreation date, type, creator, label color, icon, Finder tags, other extended attributes\nand hard links to the file to be preserved (but note that the Mac OS resource fork is\nalways preserved unless specifically deleted with \"-rsrc:all=\").  This is implemented by\nopening the original file in update mode and replacing its data with a copy of a\ntemporary file before deleting the temporary.  The extra step results in slower\nperformance, so the -overwriteoriginal option should be used instead unless necessary.\n\nNote that this option reverts to the behaviour of the -overwriteoriginal option when\nalso writing the FileName and/or Directory tags.\n\n#### -P -preserve\n\nPreserve the filesystem modification date/time (\"FileModifyDate\") of the original file\nwhen writing.  Note that some filesystems store a creation date (ie. \"FileCreateDate\" on\nWindows and Mac systems) which is not affected by this option.  This creation date is\npreserved on Windows systems where Win32API::File and Win32::API are available\nregardless of this setting.  For other systems, the -overwriteoriginalinplace option\nmay be used if necessary to preserve the creation date.  The -P option is superseded by\nany value written to the FileModifyDate tag.\n\n#### -password\n\nSpecify password to allow processing of password-protected PDF documents.  If a password\nis required but not given, a warning is issued and the document is not processed.  This\noption is ignored if a password is not required.\n\n#### -progress\n\nShow the progress when processing files.  Without a colon, the -progress option adds a\nprogress count in brackets after the name of each processed file, giving the current\nfile number and the total number of files to be processed.  Implies the -v0 option,\ncausing the names of processed files to also be printed when writing.  When combined\nwith the -if option, the total count includes all files before the condition is applied,\nbut files that fail the condition will not have their names printed.\n\nIf followed by a colon (ie. -progress:), the console window title is set according to\nthe specified TITLE string.  If no TITLE is given, a default TITLE string of \"ExifTool\n%p%%\" is assumed.  In the string, %f represents the file name, %p is the progress as a\npercent, %r is the progress as a ratio, %##b is a progress bar of width \"##\" (20\ncharacters if \"##\" is omitted), and %% is a % character.  May be combined with the\nnormal -progress option to also show the progress count in console messages.  (Note: For\nthis feature to function correctly on Mac/Linux, stderr must go to the console.)\n\n#### -q -quiet\n\nQuiet processing.  One -q suppresses normal informational messages, and a second -q\nsuppresses warnings as well.  Error messages can not be suppressed, although minor\nerrors may be downgraded to warnings with the -m option, which may then be suppressed\nwith \"-q -q\".\n\n#### -r -recurse\n\nRecursively process files in subdirectories.  Only meaningful if FILE is a directory\nname.  Subdirectories with names beginning with \".\" are not processed unless \".\" is\nadded to the option name (ie. -r. or -recurse.).  By default, exiftool will also follow\nsymbolic links to directories if supported by the system, but this may be disabled with\n\"-i SYMLINKS\" (see the -i option for details).  Combine this with -ext options to\ncontrol the types of files processed.\n\n#### -scanForXMP\n\nScan all files (even unsupported formats) for XMP information unless found already.\nWhen combined with the -fast option, only unsupported file types are scanned.  Warning:\nIt can be time consuming to scan large files.\n\n#### -u -unknown\n\nExtract values of unknown tags.  Add another -u to also extract unknown information from\nbinary data blocks.  This option applies to tags with numerical tag ID's, and causes tag\nnames like \"Exif0xc5d9\" to be generated for unknown information.  It has no effect on\ninformation types which have human-readable tag ID's (such as XMP), since unknown tags\nare extracted automatically from these formats.\n\n#### -U -unknown2\n\nExtract values of unknown tags as well as unknown information from some binary data\nblocks.  This is the same as two -u options.\n\n#### -wm -writeMode\n\nSet mode for writing/creating tags.  MODE is a string of one or more characters from the\nlist below.  The default write mode is \"wcg\".\n\nw - Write existing tags\nc - Create new tags\ng - create new Groups as necessary\n\nFor example, use \"-wm cg\" to only create new tags (and avoid editing existing ones).\n\nThe level of the group is the SubDirectory level in the metadata structure.  For XMP or\nIPTC this is the full XMP/IPTC block (the family 0 group), but for EXIF this is the\nindividual IFD (the family 1 group).\n\n#### -z -zip\n\nWhen reading, causes information to be extracted from .gz and .bz2 compressed images\n(only one image per archive; requires gzip and bzip2 to be available).  When writing,\ncauses compressed information to be written if supported by the metadata format (eg.\ncompressed textual metadata in PNG), disables the recommended padding in embedded XMP\n(saving 2424 bytes when writing XMP in a file), and writes XMP in shorthand format --\nthe equivalent of setting the API Compress=1 and Compact=\"NoPadding,Shorthand\".\n\nOther options\n\n-@ ARGFILE\nRead command-line arguments from the specified file.  The file contains one argument per\nline (NOT one option per line -- some options require additional arguments, and all\narguments must be placed on separate lines).  Blank lines and lines beginning with \"#\"\nare ignored (unless they start with \"#[CSTR]\", in which case the rest of the line is\ntreated as a C string, allowing standard C escape sequences such as \"\\n\" for a newline).\nWhite space at the start of a line is removed.  Normal shell processing of arguments is\nnot performed, which among other things means that arguments should not be quoted and\nspaces are treated as any other character.  ARGFILE may exist relative to either the\ncurrent directory or the exiftool directory unless an absolute pathname is given.\n\nFor example, the following ARGFILE will set the value of Copyright to \"Copyright YYYY,\nPhil Harvey\", where \"YYYY\" is the year of CreateDate:\n\n-d\n%Y\n-copyright<Copyright $createdate, Phil Harvey\n\nArguments in ARGFILE behave exactly the same as if they were entered at the location of\nthe -@ option on the command line, with the exception that the -config and -commonargs\noptions may not be used in an ARGFILE.\n\n#### -k -pause\n\nPause with the message \"-- press any key --\" or \"-- press RETURN --\" (depending on your\nsystem) before terminating.  This option is used to prevent the command window from\nclosing when run as a Windows drag and drop application.\n\n#### -list -listw -listf -listr -listwf -listg -listd -listx\n\nPrint a list of all valid tag names (-list), all writable tag names (-listw), all\nsupported file extensions (-listf), all recognized file extensions (-listr), all\nwritable file extensions (-listwf), all tag groups [in a specified family]\n(-listg[NUM]), all deletable tag groups (-listd), or an XML database of tag details\nincluding language translations (-listx).  The -list, -listw and -listx options may be\nfollowed by an additional argument of the form \"-GROUP:All\" to list only tags in a\nspecific group, where \"GROUP\" is one or more family 0-2 group names (excepting EXIF IFD\ngroups) separated by colons.  With -listg, NUM may be given to specify the group family,\notherwise family 0 is assumed.  The -l option may be combined with -listf, -listr or\n-listwf to add file descriptions to the list.  The -lang option may be combined with\n-listx to output descriptions in a single language.  Here are some examples:\n\n-list               # list all tag names\n-list -EXIF:All     # list all EXIF tags\n-list -xmp:time:all # list all XMP tags relating to time\n-listw -XMP-dc:All  # list all writable XMP-dc tags\n-listf              # list all supported file extensions\n-listr              # list all recognized file extensions\n-listwf             # list all writable file extensions\n-listg1             # list all groups in family 1\n-listd              # list all deletable groups\n-listx -EXIF:All    # list database of EXIF tags in XML format\n-listx -XMP:All -s  # list short XML database of XMP tags\n\nWhen combined with -listx, the -s option shortens the output by omitting the\ndescriptions and values (as in the last example above), and -f adds a 'flags' attribute\nif applicable.  The flags are formatted as a comma-separated list of the following\npossible values:  Avoid, Binary, List, Mandatory, Permanent, Protected, Unknown and\nUnsafe (see the Tag Name documentation).  For XMP List tags, the list type (Alt, Bag or\nSeq) is added to the flags, and flattened structure tags are indicated by a Flattened\nflag.\n\nNote that none of the -list options require an input FILE.\n\n#### -ver -v\n\ninformation (see the README file of the full distribution for more details about\noptional libraries), or -v2 to also list the Perl include directories.\n\n--   Indicates the end of options.  Any remaining arguments are treated as file names, even\nif they begin with a dash (\"-\").\n\nSpecial features\n\n#### -geotag\n\nGeotag images from the specified GPS track log file.  Using the -geotag option is\nequivalent to writing a value to the \"Geotag\" tag.  The GPS position is interpolated\nfrom the track at a time specified by the value written to the \"Geotime\" tag.  If\n\"Geotime\" is not specified, the value is copied from \"DateTimeOriginal#\" (the \"#\" is\nadded to copy the unformatted value, avoiding potential conflicts with the -d option).\nFor example, the following two commands are equivalent:\n\nexiftool -geotag trk.log image.jpg\nexiftool -geotag trk.log \"-Geotime<DateTimeOriginal#\" image.jpg\n\nWhen the \"Geotime\" value is converted to UTC, the local system timezone is assumed\nunless the date/time value contains a timezone.  Writing \"Geotime\" causes the following\ntags to be written (provided they can be calculated from the track log, and they are\nsupported by the destination metadata format):  GPSLatitude, GPSLatitudeRef,\nGPSLongitude, GPSLongitudeRef, GPSAltitude, GPSAltitudeRef, GPSDateStamp, GPSTimeStamp,\nGPSDateTime, GPSTrack, GPSTrackRef, GPSSpeed, GPSSpeedRef, GPSImgDirection,\nGPSImgDirectionRef, GPSPitch, GPSRoll, AmbientTemperature and CameraElevationAngle.  By\ndefault, tags are created in EXIF, and updated in XMP only if they already exist.\nHowever, \"EXIF:Geotime\" or \"XMP:Geotime\" may be specified to write only EXIF or XMP tags\nrespectively.  Note that GPSPitch and GPSRoll are non-standard, and require user-defined\ntags in order to be written.\n\nThe \"Geosync\" tag may be used to specify a time correction which is applied to each\n\"Geotime\" value for synchronization with GPS time.  For example, the following command\ncompensates for image times which are 1 minute and 20 seconds behind GPS:\n\nexiftool -geosync=+1:20 -geotag a.log DIR\n\nAdvanced \"Geosync\" features allow a linear time drift correction and synchronization\nfrom previously geotagged images.  See \"geotag.html\" in the full ExifTool distribution\nfor more information.\n\nMultiple -geotag options may be used to concatenate GPS track log data.  Also, a single\n-geotag option may be used to load multiple track log files by using wildcards in the\nTRKFILE name, but note that in this case TRKFILE must be quoted on most systems (with\nthe notable exception of Windows) to prevent filename expansion.  For example:\n\nexiftool -geotag \"TRACKDIR/*.log\" IMAGEDIR\n\nCurrently supported track file formats are GPX, NMEA RMC/GGA/GLL, KML, IGC, Garmin XML\nand TCX, Magellan PMGNTRK, Honeywell PTNTHPR, Bramor gEO, Winplus Beacon TXT, and\nGPS/IMU CSV files.  See \"GEOTAGGING EXAMPLES\" for examples. Also see \"geotag.html\" in\nthe full ExifTool distribution and the Image::ExifTool Options for more details and for\ninformation about geotag configuration options.\n\n#### -globalTimeShift\n\nShift all formatted date/time values by the specified amount when reading.  Does not\napply to unformatted (-n) output.  SHIFT takes the same form as the date/time shift when\nwriting (see Image::ExifTool::Shift.pl for details), with a negative shift being\nindicated with a minus sign (\"-\") at the start of the SHIFT string.  For example:\n\n# return all date/times, shifted back by 1 hour\nexiftool -globalTimeShift -1 -time:all a.jpg\n\n# set the file name from the shifted CreateDate (-1 day) for\n# all images in a directory\nexiftool \"-filename<createdate\" -globaltimeshift \"-0:0:1 0:0:0\" \\\n-d %Y%m%d-%H%M%S.%%e dir\n\n#### -use\n\nAdd features from specified plug-in MODULE.  Currently, the MWG module is the only plug-\nin module distributed with exiftool.  This module adds read/write support for tags as\nrecommended by the Metadata Working Group.  As a convenience, \"-use MWG\" is assumed if\nthe \"MWG\" group is specified for any tag on the command line.  See the MWG Tags\ndocumentation for more details.  Note that this option is not reversible, and remains in\neffect until the application terminates, even across the -execute option.\n\nUtilities\n\n#### -restore\n\n#### -delete\n\nThese utility options automate the maintenance of the \"original\" files created by\nexiftool.  They have no effect on files without an \"original\" copy.  The\n-restoreoriginal option restores the specified files from their original copies by\nrenaming the \"original\" files to replace the edited versions.  For example, the\nfollowing command restores the originals of all JPG images in directory \"DIR\":\n\nexiftool -restoreoriginal -ext jpg DIR\n\nThe -deleteoriginal option deletes the \"original\" copies of all files specified on the\ncommand line.  Without a trailing \"!\" this option prompts for confirmation before\ncontinuing.  For example, the following command deletes \"a.jpgoriginal\" if it exists,\nafter asking \"Are you sure?\":\n\nexiftool -deleteoriginal a.jpg\n\nThese options may not be used with other options to read or write tag values in the same\ncommand, but may be combined with options such -ext, -if, -r, -q and -v.\n\nAdvanced options\n\nAmong other things, the advanced options allow complex processing to be performed from a\nsingle command without the need for additional scripting.  This may be particularly useful\nfor implementations such as Windows drag-and-drop applications.  These options may also be\nused to improve performance in multi-pass processing by reducing the overhead required to\nload exiftool for each invocation.\n\n#### -api\n\nSet ExifTool API option.  OPT is an API option name.  The option value is set to 1 if\n=VAL is omitted.  If VAL is omitted, the option value is set to undef if \"=\" is used, or\nan empty string with \"^=\".  See Image::ExifTool Options for a list of available API\noptions.  This overrides API options set via the config file.\n\n#### -common\n\nSpecifies that all arguments following this option are common to all executed commands\nwhen -execute is used.  This and the -config option are the only options that may not be\nused inside a -@ ARGFILE.  Note that by definition this option and its arguments MUST\ncome after all other options on the command line.\n\n#### -config\n\nLoad specified configuration file instead of the default \".ExifToolconfig\".  If used,\nthis option must come before all other arguments on the command line and applies to all\n-execute'd commands.  The CFGFILE must exist relative to the current working directory\nor the exiftool application directory unless an absolute path is specified.  Loading of\nthe default config file may be disabled by setting CFGFILE to an empty string (ie.  \"\").\nSee <https://exiftool.org/config.html> and configfiles/example.config in the full\nExifTool distribution for details about the configuration file syntax.\n\n#### -echo\n\nEcho TEXT to stdout (-echo or -echo1) or stderr (-echo2).  Text is output as the command\nline is parsed, before the processing of any input files.  NUM may also be 3 or 4 to\noutput text (to stdout or stderr respectively) after processing is complete.  For -echo3\nand -echo4, \"${status}\" may be used in the TEXT string to represent the numerical exit\nstatus of the command (see \"EXIT STATUS\").\n\n#### -efile\n\nSave the names of files giving errors (NUM missing or 1), files that were unchanged (NUM\nis 2), files that fail the -if condition (NUM is 4), or any combination thereof by\nsumming NUM (eg. -efile3 is the same has having both -efile and -efile2 options with the\nsame ERRFILE).  By default, file names are appended to any existing ERRFILE, but ERRFILE\nis overwritten if an exclamation point is added to the option (eg. -efile!).  Saves the\nname of the file specified by the -srcfile option if applicable.\n\n#### -execute\n\nExecute command for all arguments up to this point on the command line (plus any\narguments specified by -commonargs).  The result is as if the commands were executed as\nseparate command lines (with the exception of the -config and -use options which remain\nin effect for subsequent commands).  Allows multiple commands to be executed from a\nsingle command line.  NUM is an optional number that is echoed in the \"{ready}\" message\nwhen using the -stayopen feature.  If a NUM is specified, the -q option no longer\nsuppresses the output \"{readyNUM}\" message.\n\n#### -list\n\nList directories themselves instead of their contents.  This option effectively causes\ndirectories to be treated as normal files when reading and writing.  For example, with\nthis option the output of the \"ls -la\" command on Mac/Linux may be approximated by this\nexiftool command:\n\nexiftool -listdir -T -ls-l -api systemtags -fast5 .* *\n\n(The -T option formats the output in tab-separated columns, -ls-l is a shortcut tag, the\nAPI SystemTags option is required to extract some necessary tags, and the -fast5 option\nis added for speed since only system tags are being extracted.)\n\n#### -srcfile\n\nSpecify a different source file to be processed based on the name of the original FILE.\nThis may be useful in some special situations for processing related preview images or\nsidecar files.  See the -w option for a description of the FMT syntax.  Note that file\nname FMT strings for all options are based on the original FILE specified from the\ncommand line, not the name of the source file specified by -srcfile.\n\nFor example, to copy metadata from NEF files to the corresponding JPG previews in a\ndirectory where other JPG images may exist:\n\nexiftool -ext nef -tagsfromfile @ -srcfile %d%f.jpg dir\n\nIf more than one -srcfile option is specified, the files are tested in order and the\nfirst existing source file is processed.  If none of the source files already exist,\nthen exiftool uses the first -srcfile specified.\n\nA FMT of \"@\" may be used to represent the original FILE, which may be useful when\nspecifying multiple -srcfile options (eg. to fall back to processing the original FILE\nif no sidecar exists).\n\nWhen this option is used, two special UserParam tags (OriginalFileName and\nOriginalDirectory) are generated to allow access to the original FILE name and\ndirectory.\n\n#### -stay\n\nIf FLAG is 1 or \"True\" (case insensitive), causes exiftool keep reading from the -@\nARGFILE even after reaching the end of file.  This feature allows calling applications\nto pre-load exiftool, thus avoiding the overhead of loading exiftool for each command.\nThe procedure is as follows:\n\n1) Execute \"exiftool -stayopen True -@ ARGFILE\", where ARGFILE is the name of an\nexisting (possibly empty) argument file or \"-\" to pipe arguments from the standard\ninput.\n\n2) Write exiftool command-line arguments to ARGFILE, one argument per line (see the -@\noption for details).\n\n3) Write \"-execute\\n\" to ARGFILE, where \"\\n\" represents a newline sequence.  (Note: You\nmay need to flush your write buffers here if using buffered output.)  ExifTool will then\nexecute the command with the arguments received up to this point, send a \"{ready}\"\nmessage to stdout when done (unless the -q or -T option is used), and continue trying to\nread arguments for the next command from ARGFILE.  To aid in command/response\nsynchronization, any number appended to the -execute option is echoed in the \"{ready}\"\nmessage.  For example, \"-execute613\" results in \"{ready613}\".  When this number is\nadded, -q no longer suppresses the \"{ready}\" message.  (Also, see the -echo3 and -echo4\noptions for additional ways to pass signals back to your application.)\n\n4) Repeat steps 2 and 3 for each command.\n\n5) Write \"-stayopen\\nFalse\\n\" (or \"-stayopen\\n0\\n\") to ARGFILE when done.  This will\ncause exiftool to process any remaining command-line arguments then exit normally.\n\nThe input ARGFILE may be changed at any time before step 5 above by writing the\nfollowing lines to the currently open ARGFILE:\n\n-stayopen\nTrue\n-@\nNEWARGFILE\n\nThis causes ARGFILE to be closed, and NEWARGFILE to be kept open.  (Without the\n-stayopen here, exiftool would have returned to reading arguments from ARGFILE after\nreaching the end of NEWARGFILE.)\n\nNote:  When writing arguments to a disk file there is a delay of up to 0.01 seconds\nafter writing \"-execute\\n\" before exiftool starts processing the command.  This delay\nmay be avoided by sending a CONT signal to the exiftool process immediately after\nwriting \"-execute\\n\".  (There is no associated delay when writing arguments via a pipe\nwith \"-@ -\", so the signal is not necessary when using this technique.)\n\n#### -userParam\n\nSet user parameter.  PARAM is an arbitrary user parameter name.  This is an interface to\nthe API UserParam option (see the Image::ExifTool Options documentation), and provides a\nmethod to access user-defined parameters in arguments to the -if and -p options as if\nthey were any other tag.  Appending a hash tag (\"#\") to PARAM (eg. \"-userParam\nMyTag#=yes\") also causes the parameter to be extracted as a normal tag in the UserParam\ngroup.  Similar to the -api option, the parameter value is set to 1 if =VAL is omitted,\nundef if just VAL is omitted with \"=\", or an empty string if VAL is omitted with \"^=\".\n\nexiftool -p '$test from $filename' -userparam test=Hello FILE\n\nAdvanced formatting feature\n\nAn advanced formatting feature allows modification of the value of any tag interpolated\nwithin a -if or -p option argument, or a -tagsFromFile redirection string.  Tag names within\nthese strings are prefixed by a \"$\" symbol, and an arbitrary Perl expression may be applied\nto the tag value by placing braces around the tag name and inserting the expression after the\nname, separated by a semicolon (ie. \"${TAG;EXPR}\").  The expression acts on the value of the\ntag through the default input variable ($), and has access to the full ExifTool API through\nthe current ExifTool object ($self) and the tag key ($tag).  It may contain any valid Perl\ncode, including translation (\"tr///\") and substitution (\"s///\") operations, but note that\nbraces within the expression must be balanced.  The example below prints the camera Make with\nspaces translated to underlines, and multiple consecutive underlines replaced by a single\nunderline:\n\nexiftool -p '${make;tr/ //;s/+//g}' image.jpg\n\nAn \"@\" may be added after the tag name to make the expression act on individual list items\nfor list-type tags, simplifying list processing.  Set $ to undef to remove an item from the\nlist.  As an example, the following command returns all subjects not containing the string\n\"xxx\":\n\nexiftool -p '${subject@;$=undef if /xxx/}' image.jpg\n\nA default expression of \"tr(/\\\\?*:|\"<>\\0)()d\" is assumed if the expression is empty (ie.\n\"${TAG;}\").  This removes the characters / \\ ? * : | < > and null from the printed value.\n(These characters are illegal in Windows file names, so this feature is useful if tag values\nare used in file names.)\n\nHelper functions\n\n\"DateFmt\"\n\nSimplifies reformatting of individual date/time values.  This function acts on a standard\nEXIF-formatted date/time value in $ and formats it according to the specified format string\n(see the -d option).  To avoid trying to reformat an already-formatted date/time value, a \"#\"\nmust be added to the tag name (as in the example below) if the -d option is also used.  For\nexample:\n\nexiftool -p '${createdate#;DateFmt(\"%Y-%m-%d%H%M%S\")}' a.jpg\n\n\"ShiftTime\"\n\nShifts EXIF-formatted date/time string by a specified amount.  Start with a leading minus\nsign to shift backwards in time.  See Image::ExifTool::Shift.pl for details about shift\nsyntax.  For example, to shift a date/time value back by one year:\n\nexiftool -p '${createdate;ShiftTime(\"-1:0:0 0\")}' a.jpg\n\n\"NoDups\"\n\nRemoves duplicate items from a list with a separator specified by the -sep option.  This\nfunction is most useful when copying list-type tags.  For example, the following command may\nbe used to remove duplicate Keywords:\n\nexiftool -sep '##' '-keywords<${keywords;NoDups}' a.jpg\n\nThe -sep option is necessary to split the string back into individual list items when writing\nto a list-type tag.\n\nAn optional flag argument may be set to 1 to cause \"NoDups\" to set $ to undef if no\nduplicates existed, thus preventing the file from being rewritten unnecessarily:\n\nexiftool -sep '##' '-keywords<${keywords;NoDups(1)}' a.jpg\n\nNote that function names are case sensitive.\n\n### WINDOWS UNICODE FILE NAMES\n\nIn Windows, command-line arguments are specified using the current code page and are recoded\nautomatically to the system code page.  This recoding is not done for arguments in ExifTool\narg files, so by default filenames in arg files use the system code page.  Unfortunately,\nthese code pages are not complete character sets, so not all file names may be represented.\n\nExifTool 9.79 and later allow the file name encoding to be specified with \"-charset\nfilename=CHARSET\", where \"CHARSET\" is the name of a valid ExifTool character set, preferably\n\"UTF8\" (see the -charset option for a complete list).  Setting this triggers the use of\nWindows wide-character i/o routines, thus providing support for most Unicode file names (see\nnote 4).  But note that it is not trivial to pass properly encoded file names on the Windows\ncommand line (see <https://exiftool.org/faq.html#Q18> for details), so placing them in a\nUTF-8 encoded -@ argfile and using \"-charset filename=utf8\" is recommended if possible.\n\nA warning is issued if a specified filename contains special characters and the filename\ncharacter set was not provided.  However, the warning may be disabled by setting \"-charset\nfilename=\"\"\", and ExifTool may still function correctly if the system code page matches the\ncharacter set used for the file names.\n\nWhen a directory name is provided, the file name encoding need not be specified (unless the\ndirectory name contains special characters), and ExifTool will automatically use wide-\ncharacter routines to scan the directory.\n\nThe filename character set applies to the FILE arguments as well as filename arguments of -@,\n\n#### -geotag -o -p -srcfile -tagsFromFile -csv -j -\n\nto the -config filename, which always uses the system character set.  The \"-charset\nfilename=\" option must come before the -@ option to be effective, but the order doesn't\nmatter with respect to other options.\n\nNotes:\n\n1) FileName and Directory tag values still use the same encoding as other tag values, and are\nconverted to/from the filename character set when writing/reading if specified.\n\n2) Unicode support is not yet implemented for other Windows-based systems like Cygwin.\n\n3) See \"WRITING READ-ONLY FILES\" below for a note about editing read-only files with Unicode\nnames.\n\n4) Unicode file names with surrogate pairs (code points over U+FFFF) still cause problems.\n\n### WRITING READ-ONLY FILES\n\nIn general, ExifTool may be used to write metadata to read-only files provided that the user\nhas write permission in the directory.  However, there are three cases where file write\npermission is also required:\n\n1) When using the -overwriteoriginalinplace option.\n\n2) When writing only pseudo System tags (eg. FileModifyDate).\n\n3) On Windows if the file has Unicode characters in its name, and a) the -overwriteoriginal\noption is used, or b) the \"original\" backup already exists.\n\nHidden files in Windows behave as read-only files when attempting to write any real tags to\nthe file -- an error is generated when using the -overwriteoriginalinplace, otherwise\nwriting should be successful and the hidden attribute will be removed.  But the -if option\nmay be used to avoid processing hidden files (provided Win32API::File is available):\n\nexiftool -if \"$fileattributes !~ /Hidden/\" ...\n\n### READING EXAMPLES\n\nNote: Beware when cutting and pasting these examples into your terminal!  Some characters\nsuch as single and double quotes and hyphens may have been changed into similar-looking yet\nfunctionally-different characters by the text formatter used to display this documentation.\nAlso note that Windows users must use double quotes instead of single quotes as below around\narguments containing special characters.\n\nexiftool -a -u -g1 a.jpg\nPrint all meta information in an image, including duplicate and unknown tags, sorted by\ngroup (for family 1).  For performance reasons, this command may not extract all\navailable metadata.  (Metadata in embedded documents, metadata extracted by external\nutilities, and metadata requiring excessive processing time may not be extracted).  Add\n\"-ee3\" and \"-api RequestAll=3\" to the command to extract absolutely everything\navailable.\n\nexiftool -common dir\nPrint common meta information for all images in \"dir\".  \"-common\" is a shortcut tag\nrepresenting common EXIF meta information.\n\nexiftool -T -createdate -aperture -shutterspeed -iso dir > out.txt\nList specified meta information in tab-delimited column form for all images in \"dir\" to\nan output text file named \"out.txt\".\n\nexiftool -s -ImageSize -ExposureTime b.jpg\nPrint ImageSize and ExposureTime tag names and values.\n\nexiftool -l -canon c.jpg d.jpg\nPrint standard Canon information from two image files.\n\nexiftool -r -w .txt -common pictures\nRecursively extract common meta information from files in \"pictures\" directory, writing\ntext output to \".txt\" files with the same names.\n\nexiftool -b -ThumbnailImage image.jpg > thumbnail.jpg\nSave thumbnail image from \"image.jpg\" to a file called \"thumbnail.jpg\".\n\nexiftool -b -JpgFromRaw -w JFR.JPG -ext NEF -r .\nRecursively extract JPG image from all Nikon NEF files in the current directory, adding\n\"JFR.JPG\" for the name of the output JPG files.\n\nexiftool -a -b -W %d%f%t%-c.%s -preview:all dir\nExtract all types of preview images (ThumbnailImage, PreviewImage, JpgFromRaw, etc.)\nfrom files in directory \"dir\", adding the tag name to the output preview image file\nnames.\n\nexiftool -d '%r %a, %B %e, %Y' -DateTimeOriginal -S -s -ext jpg .\nPrint formatted date/time for all JPG files in the current directory.\n\nexiftool -IFD1:XResolution -IFD1:YResolution image.jpg\nExtract image resolution from EXIF IFD1 information (thumbnail image IFD).\n\nexiftool '-*resolution*' image.jpg\nExtract all tags with names containing the word \"Resolution\" from an image.\n\nexiftool -xmp:author:all -a image.jpg\nExtract all author-related XMP information from an image.\n\nexiftool -xmp -b a.jpg > out.xmp\nExtract complete XMP data record intact from \"a.jpg\" and write it to \"out.xmp\" using the\nspecial \"XMP\" tag (see the Extra tags in Image::ExifTool::TagNames).\n\nexiftool -p '$filename has date $dateTimeOriginal' -q -f dir\nPrint one line of output containing the file name and DateTimeOriginal for each image in\ndirectory \"dir\".\n\nexiftool -ee3 -p '$gpslatitude, $gpslongitude, $gpstimestamp' a.m2ts\nExtract all GPS positions from an AVCHD video.\n\nexiftool -iccprofile -b -w icc image.jpg\nSave complete ICCProfile from an image to an output file with the same name and an\nextension of \".icc\".\n\nexiftool -htmldump -w tmp/%f%e.html t/images\nGenerate HTML pages from a hex dump of EXIF information in all images from the\n\"t/images\" directory.  The output HTML files are written to the \"tmp\" directory (which\nis created if it didn't exist), with names of the form 'FILENAMEEXT.html'.\n\nexiftool -a -b -ee -embeddedimage -W Image%.3g3.%s file.pdf\nExtract embedded JPG and JP2 images from a PDF file.  The output images will have file\nnames like \"Image#.jpg\" or \"Image#.jp2\", where \"#\" is the ExifTool family 3 embedded\ndocument number for the image.\n\n### WRITING EXAMPLES\n\nNote that quotes are necessary around arguments which contain certain special characters such\nas \">\", \"<\" or any white space.  These quoting techniques are shell dependent, but the\nexamples below will work for most Unix shells.  With the Windows cmd shell however, double\nquotes should be used (eg. -Comment=\"This is a new comment\").\n\nexiftool -Comment='This is a new comment' dst.jpg\nWrite new comment to a JPG image (replaces any existing comment).\n\nexiftool -comment= -o newdir -ext jpg .\nRemove comment from all JPG images in the current directory, writing the modified images\nto a new directory.\n\nexiftool -keywords=EXIF -keywords=editor dst.jpg\nReplace existing keyword list with two new keywords (\"EXIF\" and \"editor\").\n\nexiftool -Keywords+=word -o newfile.jpg src.jpg\nCopy a source image to a new file, and add a keyword (\"word\") to the current list of\nkeywords.\n\nexiftool -exposurecompensation+=-0.5 a.jpg\nDecrement the value of ExposureCompensation by 0.5 EV.  Note that += with a negative\nvalue is used for decrementing because the -= operator is used for conditional deletion\n(see next example).\n\nexiftool -credit-=xxx dir\nDelete Credit information from all files in a directory where the Credit value was\n\"xxx\".\n\nexiftool -xmp:description-de='k&uuml;hl' -E dst.jpg\nWrite alternate language for XMP:Description, using HTML character escaping to input\nspecial characters.\n\nexiftool -all= dst.jpg\nDelete all meta information from an image.  Note: You should NOT do this to RAW images\n(except DNG) since proprietary RAW image formats often contain information in the\nmakernotes that is necessary for converting the image.\n\nexiftool -all= -comment='lonely' dst.jpg\nDelete all meta information from an image and add a comment back in.  (Note that the\norder is important: \"-comment='lonely' -all=\" would also delete the new comment.)\n\nexiftool -all= --jfif:all dst.jpg\nDelete all meta information except JFIF group from an image.\n\nexiftool -Photoshop:All= dst.jpg\nDelete Photoshop meta information from an image (note that the Photoshop information\nalso includes IPTC).\n\nexiftool -r -XMP-crss:all= DIR\nRecursively delete all XMP-crss information from images in a directory.\n\nexiftool '-ThumbnailImage<=thumb.jpg' dst.jpg\nSet the thumbnail image from specified file (Note: The quotes are necessary to prevent\nshell redirection).\n\nexiftool '-JpgFromRaw<=%d%fJFR.JPG' -ext NEF -r .\nRecursively write JPEG images with filenames ending in \"JFR.JPG\" to the JpgFromRaw tag\nof like-named files with extension \".NEF\" in the current directory.  (This is the\ninverse of the \"-JpgFromRaw\" command of the \"READING EXAMPLES\" section above.)\n\nexiftool -DateTimeOriginal-='0:0:0 1:30:0' dir\nAdjust original date/time of all images in directory \"dir\" by subtracting one hour and\n30 minutes.  (This is equivalent to \"-DateTimeOriginal-=1.5\".  See\nImage::ExifTool::Shift.pl for details.)\n\nexiftool -createdate+=3 -modifydate+=3 a.jpg b.jpg\nAdd 3 hours to the CreateDate and ModifyDate timestamps of two images.\n\nexiftool -AllDates+=1:30 -if '$make eq \"Canon\"' dir\nShift the values of DateTimeOriginal, CreateDate and ModifyDate forward by 1 hour and 30\nminutes for all Canon images in a directory.  (The AllDates tag is provided as a\nshortcut for these three tags, allowing them to be accessed via a single tag.)\n\nexiftool -xmp:city=Kingston image1.jpg image2.nef\nWrite a tag to the XMP group of two images.  (Without the \"xmp:\" this tag would get\nwritten to the IPTC group since \"City\" exists in both, and IPTC is preferred by\ndefault.)\n\nexiftool -LightSource-='Unknown (0)' dst.tiff\nDelete \"LightSource\" tag only if it is unknown with a value of 0.\n\nexiftool -whitebalance-=auto -WhiteBalance=tung dst.jpg\nSet \"WhiteBalance\" to \"Tungsten\" only if it was previously \"Auto\".\n\nexiftool -comment-= -comment='new comment' a.jpg\nWrite a new comment only if the image doesn't have one already.\n\nexiftool -o %d%f.xmp dir\nCreate XMP meta information data files for all images in \"dir\".\n\nexiftool -o test.xmp -owner=Phil -title='XMP File'\nCreate an XMP data file only from tags defined on the command line.\n\nexiftool '-ICCProfile<=%d%f.icc' image.jpg\nWrite ICCProfile to an image from a \".icc\" file of the same name.\n\nexiftool -hierarchicalkeywords='{keyword=one,children={keyword=B}}'\nWrite structured XMP information.  See <https://exiftool.org/struct.html> for more\ndetails.\n\nexiftool -trailer:all= image.jpg\nDelete any trailer found after the end of image (EOI) in a JPEG file.  A number of\ndigital cameras store a large PreviewImage after the JPEG EOI, and the file size may be\nreduced significantly by deleting this trailer.  See the JPEG Tags documentation for a\nlist of recognized JPEG trailers.\n\n### COPYING EXAMPLES\n\nThese examples demonstrate the ability to copy tag values between files.\n\nexiftool -tagsFromFile src.cr2 dst.jpg\nCopy the values of all writable tags from \"src.cr2\" to \"dst.jpg\", writing the\ninformation to same-named tags in the preferred groups.\n\nexiftool -TagsFromFile src.jpg -all:all dst.jpg\nCopy the values of all writable tags from \"src.jpg\" to \"dst.jpg\", preserving the\noriginal tag groups.\n\nexiftool -all= -tagsfromfile src.jpg -exif:all dst.jpg\nErase all meta information from \"dst.jpg\" image, then copy EXIF tags from \"src.jpg\".\n\nexiftool -exif:all= -tagsfromfile @ -all:all -unsafe bad.jpg\nRebuild all EXIF meta information from scratch in an image.  This technique can be used\nin JPEG images to repair corrupted EXIF information which otherwise could not be written\ndue to errors.  The \"Unsafe\" tag is a shortcut for unsafe EXIF tags in JPEG images which\nare not normally copied.  See the tag name documentation for more details about unsafe\ntags.\n\nexiftool -Tagsfromfile a.jpg out.xmp\nCopy meta information from \"a.jpg\" to an XMP data file.  If the XMP data file \"out.xmp\"\nalready exists, it will be updated with the new information.  Otherwise the XMP data\nfile will be created.  Only metadata-only files may be created like this (files\ncontaining images may be edited but not created).  See \"WRITING EXAMPLES\" above for\nanother technique to generate XMP files.\n\nexiftool -tagsFromFile a.jpg -XMP:All= -ThumbnailImage= -m b.jpg\nCopy all meta information from \"a.jpg\" to \"b.jpg\", deleting all XMP information and the\nthumbnail image from the destination.\n\nexiftool -TagsFromFile src.jpg -title -author=Phil dst.jpg\nCopy title from one image to another and set a new author name.\n\nexiftool -TagsFromFile a.jpg -ISO -TagsFromFile b.jpg -comment dst.jpg\nCopy ISO from one image and Comment from another image to a destination image.\n\nexiftool -tagsfromfile src.jpg -exif:all --subifd:all dst.jpg\nCopy only the EXIF information from one image to another, excluding SubIFD tags.\n\nexiftool '-FileModifyDate<DateTimeOriginal' dir\nUse the original date from the meta information to set the same file's filesystem\nmodification date for all images in a directory.  (Note that \"-TagsFromFile @\" is\nassumed if no other -TagsFromFile is specified when redirecting information as in this\nexample.)\n\nexiftool -TagsFromFile src.jpg '-xmp:all<all' dst.jpg\nCopy all possible information from \"src.jpg\" and write in XMP format to \"dst.jpg\".\n\nexiftool '-Description<${FileName;s/\\.[^.]*$//}' dir\nSet the image Description from the file name after removing the extension.  This example\nuses the \"Advanced formatting feature\" to perform a substitution operation to remove the\nlast dot and subsequent characters from the file name.\n\nexiftool -@ iptc2xmp.args -iptc:all= a.jpg\nTranslate IPTC information to XMP with appropriate tag name conversions, and delete the\noriginal IPTC information from an image.  This example uses iptc2xmp.args, which is a\nfile included with the ExifTool distribution that contains the required arguments to\nconvert IPTC information to XMP format.  Also included with the distribution are\nxmp2iptc.args (which performs the inverse conversion) and a few more .args files for\nother conversions between EXIF, IPTC and XMP.\n\nexiftool -tagsfromfile %d%f.CR2 -r -ext JPG dir\nRecursively rewrite all \"JPG\" images in \"dir\" with information copied from the\ncorresponding \"CR2\" images in the same directories.\n\nexiftool '-keywords+<make' image.jpg\nAdd camera make to list of keywords.\n\nexiftool '-comment<ISO=$exif:iso Exposure=${shutterspeed}' dir\nSet the Comment tag of all images in \"dir\" from the values of the EXIF:ISO and\nShutterSpeed tags.  The resulting comment will be in the form \"ISO=100 Exposure=1/60\".\n\nexiftool -TagsFromFile src.jpg -iccprofile dst.jpg\nCopy ICCProfile from one image to another.\n\nexiftool -TagsFromFile src.jpg -all:all dst.mie\nCopy all meta information in its original form from a JPEG image to a MIE file.  The MIE\nfile will be created if it doesn't exist.  This technique can be used to store the\nmetadata of an image so it can be inserted back into the image (with the inverse\ncommand) later in a workflow.\n\nexiftool -o dst.mie -all:all src.jpg\nThis command performs exactly the same task as the command above, except that the -o\noption will not write to an output file that already exists.\n\nexiftool -b -jpgfromraw -w %d%f%ue.jpg -execute -b -previewimage -w %d%f%ue.jpg -execute\n-tagsfromfile @ -srcfile %d%f%ue.jpg -overwriteoriginal -commonargs --ext jpg DIR\n[Advanced] Extract JpgFromRaw or PreviewImage from all but JPG files in DIR, saving them\nwith file names like \"imageEXT.jpg\", then add all meta information from the original\nfiles to the extracted images.  Here, the command line is broken into three sections\n(separated by -execute options), and each is executed as if it were a separate command.\nThe -commonargs option causes the \"--ext jpg DIR\" arguments to be applied to all three\ncommands, and the -srcfile option allows the extracted JPG image to be the source file\nfor the third command (whereas the RAW files are the source files for the other two\ncommands).\n\n### RENAMING EXAMPLES\n\nBy writing the \"FileName\" and \"Directory\" tags, files are renamed and/or moved to new\ndirectories.  This can be particularly useful and powerful for organizing files by date when\ncombined with the -d option.  New directories are created as necessary, but existing files\nwill not be overwritten.  The format codes %d, %f and %e may be used in the new file name to\nrepresent the directory, name and extension of the original file, and %c may be used to add a\ncopy number if the file already exists (see the -w option for details).  Note that if used\nwithin a date format string, an extra '%' must be added to pass these codes through the\ndate/time parser.  (And further note that in a Windows batch file, all '%' characters must\nalso be escaped, so in this extreme case '%%%%f' is necessary to pass a simple '%f' through\nthe two levels of parsing.)  See <https://exiftool.org/filename.html> for additional\ndocumentation and examples.\n\nexiftool -filename=new.jpg dir/old.jpg\nRename \"old.jpg\" to \"new.jpg\" in directory \"dir\".\n\nexiftool -directory=%e dir\nMove all files from directory \"dir\" into directories named by the original file\nextensions.\n\nexiftool '-Directory<DateTimeOriginal' -d %Y/%m/%d dir\nMove all files in \"dir\" into a directory hierarchy based on year, month and day of\n\"DateTimeOriginal\".  eg) This command would move the file \"dir/image.jpg\" with a\n\"DateTimeOriginal\" of \"2005:10:12 16:05:56\" to \"2005/10/12/image.jpg\".\n\nexiftool -o . '-Directory<DateTimeOriginal' -d %Y/%m/%d dir\nSame effect as above except files are copied instead of moved.\n\nexiftool '-filename<%f${model;}.%e' dir\nRename all files in \"dir\" by adding the camera model name to the file name.  The\nsemicolon after the tag name inside the braces causes characters which are invalid in\nWindows file names to be deleted from the tag value (see the \"Advanced formatting\nfeature\" for an explanation).\n\nexiftool '-FileName<CreateDate' -d %Y%m%d%H%M%S%%-c.%%e dir\nRename all images in \"dir\" according to the \"CreateDate\" date and time, adding a copy\nnumber with leading '-' if the file already exists (\"%-c\"), and preserving the original\nfile extension (%e).  Note the extra '%' necessary to escape the filename codes (%c and\n%e) in the date format string.\n\nexiftool -r '-FileName<CreateDate' -d %Y-%m-%d/%H%M%%f.%%e dir\nBoth the directory and the filename may be changed together via the \"FileName\" tag if\nthe new \"FileName\" contains a '/'.  The example above recursively renames all images in\na directory by adding a \"CreateDate\" timestamp to the start of the filename, then moves\nthem into new directories named by date.\n\nexiftool '-FileName<${CreateDate}$filenumber.jpg' -d %Y%m%d -ext jpg .\nSet the filename of all JPG images in the current directory from the CreateDate and\nFileNumber tags, in the form \"20060507118-1861.jpg\".\n\n### GEOTAGGING EXAMPLES\n\nExifTool implements geotagging via 3 special tags: Geotag (which for convenience is also\nimplemented as an exiftool option), Geosync and Geotime.  The examples below highlight some\ngeotagging features.  See <https://exiftool.org/geotag.html> for additional documentation.\n\nexiftool -geotag track.log a.jpg\nGeotag an image (\"a.jpg\") from position information in a GPS track log (\"track.log\").\nSince the \"Geotime\" tag is not specified, the value of DateTimeOriginal is used for\ngeotagging.  Local system time is assumed unless DateTimeOriginal contains a timezone.\n\nexiftool -geotag t.log -geotime='2009:04:02 13:41:12-05:00' a.jpg\nGeotag an image with the GPS position for a specific time.\n\nexiftool -geotag log.gpx '-xmp:geotime<createdate' dir\nGeotag all images in directory \"dir\" with XMP tags instead of EXIF tags, based on the\nimage CreateDate.\n\nexiftool -geotag a.log -geosync=-20 dir\nGeotag images in directory \"dir\", accounting for image timestamps which were 20 seconds\nahead of GPS.\n\nexiftool -geotag a.log -geosync=1.jpg -geosync=2.jpg dir\nGeotag images using time synchronization from two previously geotagged images (1.jpg and\n2.jpg), synchronizing the image and GPS times using a linear time drift correction.\n\nexiftool -geotag a.log '-geotime<${createdate}+01:00' dir\nGeotag images in \"dir\" using CreateDate with the specified timezone.  If CreateDate\nalready contained a timezone, then the timezone specified on the command line is\nignored.\n\nexiftool -geotag= a.jpg\nDelete GPS tags which may have been added by the geotag feature.  Note that this does\nnot remove all GPS tags -- to do this instead use \"-gps:all=\".\n\nexiftool -xmp:geotag= a.jpg\nDelete XMP GPS tags which were added by the geotag feature.\n\nexiftool -xmp:geotag=track.log a.jpg\nGeotag an image with XMP tags, using the time from DateTimeOriginal.\n\nexiftool -geotag a.log -geotag b.log -r dir\nCombine multiple track logs and geotag an entire directory tree of images.\n\nexiftool -geotag 'tracks/*.log' -r dir\nRead all track logs from the \"tracks\" directory.\n\nexiftool -p gpx.fmt -d %Y-%m-%dT%H:%M:%SZ dir > out.gpx\nGenerate a GPX track log from all images in directory \"dir\".  This example uses the\n\"gpx.fmt\" file included in the full ExifTool distribution package and assumes that the\nimages in \"dir\" have all been previously geotagged.\n\n### PIPING EXAMPLES\n\ncat a.jpg | exiftool -\nExtract information from stdin.\n\nexiftool image.jpg -thumbnailimage -b | exiftool -\nExtract information from an embedded thumbnail image.\n\ncat a.jpg | exiftool -iptc:keywords+=fantastic - > b.jpg\nAdd an IPTC keyword in a pipeline, saving output to a new file.\n\ncurl -s http://a.domain.com/bigfile.jpg | exiftool -fast -\nExtract information from an image over the internet using the cURL utility.  The -fast\noption prevents exiftool from scanning for trailer information, so only the meta\ninformation header is transferred.\n\nexiftool a.jpg -thumbnailimage -b | exiftool -comment=wow - | exiftool a.jpg\n-thumbnailimage'<=-'\nAdd a comment to an embedded thumbnail image.  (Why anyone would want to do this I don't\nknow, but I've included this as an example to illustrate the flexibility of ExifTool.)\n\n### INTERRUPTING EXIFTOOL\n\nInterrupting exiftool with a CTRL-C or SIGINT will not result in partially written files or\ntemporary files remaining on the hard disk.  The exiftool application traps SIGINT and defers\nit until the end of critical processes if necessary, then does a proper cleanup before\nexiting.\n\n### EXIT STATUS\n\nThe exiftool application exits with a status of 0 on success, or 1 if an error occurred, or 2\nif all files failed the -if condition (for any of the commands if -execute was used).\n\n### AUTHOR\n\nCopyright 2003-2022, Phil Harvey\n\nThis is free software; you can redistribute it and/or modify it under the same terms as Perl\nitself.\n\n### SEE ALSO\n\nImage::ExifTool(3pm), Image::ExifTool::TagNames(3pm), Image::ExifTool::Shortcuts(3pm),\nImage::ExifTool::Shift.pl\n\n\n\nperl v5.34.0                                 2022-02-12                                 EXIFTOOL(1p)\n\n"
        }
    ],
    "structuredContent": {
        "command": "EXIFTOOL",
        "section": "1p",
        "mode": "man",
        "summary": "exiftool - Read and write meta information in files",
        "synopsis": "",
        "flags": [
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Copy tag values from SRCFILE to FILE. Tag names on the command line after this option specify the tags to be copied, or excluded from the copy. Wildcards are permitted in these tag names. If no tags are specified, then all possible tags (see note 1 below) from the source file are copied to same-named tags in the preferred location of the output file (the same as specifying \"-all\"). More than one -tagsFromFile option may be used to copy tags from multiple files. By default, this option will update any existing and writable same-named tags in the output FILE, but will create new tags only in their preferred groups. This allows some information to be automatically transferred to the appropriate group when copying between images of different formats. However, if a group name is specified for a tag then the information is written only to this group (unless redirected to another group, see below). If \"All\" is used as a group name, then the specified tag(s) are written to the same family 1 group they had in the source file (ie. the same specific location, like ExifIFD or XMP-dc). For example, the common operation of copying all writable tags to the same specific locations in the output FILE is achieved by adding \"-all:all\". A different family may be specified by adding a leading family number to the group name (eg. \"-0all:all\" preserves the same general location, like EXIF or XMP). SRCFILE may be the same as FILE to move information around within a single file. In this case, \"@\" may be used to represent the source file (ie. \"-tagsFromFile @\"), permitting this feature to be used for batch processing multiple files. Specified tags are then copied from each file in turn as it is rewritten. For advanced batch use, the source file name may also be specified using a FMT string in which %d, %f and %e represent the directory, file name and extension of FILE. (eg. the current FILE would be represented by \"%d%f.%e\", with the same effect as \"@\"). See the -w option for FMT string examples. A powerful redirection feature allows a destination tag to be specified for each copied tag. With this feature, information may be written to a tag with a different name or group. This is done using \"'-DSTTAG<SRCTAG'\" or \"'-SRCTAG>DSTTAG'\" on the command line after -tagsFromFile, and causes the value of SRCTAG to be copied from SRCFILE and written to DSTTAG in FILE. Has no effect unless SRCTAG exists in SRCFILE. Note that this argument must be quoted to prevent shell redirection, and there is no \"=\" sign as when assigning new values. Source and/or destination tags may be prefixed by a group name and/or suffixed by \"#\". Wildcards are allowed in both the source and destination tag names. A destination group and/or tag name of \"All\" or \"*\" writes to the same family 1 group and/or tag name as the source. If no destination group is specified, the information is written to the preferred group. Whitespace around the \">\" or \"<\" is ignored. As a convenience, \"-tagsFromFile @\" is assumed for any redirected tags which are specified without a prior -tagsFromFile option. Copied tags may also be added or deleted from a list with arguments of the form \"'-SRCTAG+<DSTTAG'\" or \"'-SRCTAG-<DSTTAG'\" (but see Note 5 below). An extension of the redirection feature allows strings involving tag names to be used on the right hand side of the \"<\" symbol with the syntax \"'-DSTTAG<STR'\", where tag names in STR are prefixed with a \"$\" symbol. See the -p option and the \"Advanced formatting feature\" section for more details about this syntax. Strings starting with a \"=\" sign must insert a single space after the \"<\" to avoid confusion with the \"<=\" operator which sets the tag value from the contents of a file. A single space at the start of the string is removed if it exists, but all other whitespace in the string is preserved. See note 8 below about using the redirection feature with list-type stags, shortcuts or when using wildcards in tag names. See \"COPYING EXAMPLES\" for examples using -tagsFromFile. Notes: 1) Some tags (generally tags which may affect the appearance of the image) are considered \"Unsafe\" to write, and are only copied if specified explicitly (ie. no wildcards). See the tag name documentation for more details about \"Unsafe\" tags. 2) Be aware of the difference between excluding a tag from being copied (--TAG), and deleting a tag (-TAG=). Excluding a tag prevents it from being copied to the destination image, but deleting will remove a pre-existing tag from the image. 3) The maker note information is copied as a block, so it isn't affected like other information by subsequent tag assignments on the command line, and individual makernote tags may not be excluded from a block copy. Also, since the PreviewImage referenced from the maker notes may be rather large, it is not copied, and must be transferred separately if desired. 4) The order of operations is to copy all specified tags at the point of the -tagsFromFile option in the command line. Any tag assignment to the right of the -tagsFromFile option is made after all tags are copied. For example, new tag values are set in the order One, Two, Three then Four with this command: exiftool -One=1 -tagsFromFile s.jpg -Two -Four=4 -Three d.jpg This is significant in the case where an overlap exists between the copied and assigned tags because later operations may override earlier ones. 5) The normal behaviour of copied tags differs from that of assigned tags for list-type tags and conditional replacements because each copy operation on a tag overrides any previous operations. While this avoids duplicate list items when copying groups of tags from a file containing redundant information, it also prevents values of different tags from being copied into the same list when this is the intent. So a -addTagsFromFile option is provided which allows copying of multiple tags into the same list. eg) exiftool -addtagsfromfile @ '-subject<make' '-subject<model' ... Similarly, -addTagsFromFile must be used when conditionally replacing a tag to prevent overriding earlier conditions. Other than these differences, the -tagsFromFile and -addTagsFromFile options are equivalent. 6) The -a option (allow duplicate tags) is always in effect when copying tags from SRCFILE, but the highest priority tag is always copied last so it takes precedence. 7) Structured tags are copied by default when copying tags. See the -struct option for details. 8) With the redirection feature, copying a tag directly (ie. \"'-DSTTAG<SRCTAG'\") is not the same as interpolating its value inside a string (ie. \"'-DSTTAG<$SRCTAG'\") for list- type tags, shortcut tags, tag names containing wildcards, or UserParam variables. When copying directly, the values of each matching source tag are copied individually to the destination tag (as if they were separate assignments). However, when interpolated inside a string, list items and the values of shortcut tags are concatenated (with a separator set by the -sep option), and wildcards are not allowed. Also, UserParam variables are available only when interpolated in a string. Another difference is that a minor warning is generated if a tag doesn't exist when interpolating its value in a string (with \"$\"), but isn't when copying the tag directly. Finally, the behaviour is different when a destination tag or group of \"All\" is used. When copying directly, a destination group and/or tag name of \"All\" writes to the same family 1 group and/or tag name as the source. But when interpolated in a string, the identity of the source tags are lost and the value is written to all possible groups/tags. For example, the string form must be used in the following command since the intent is to set the value of all existing date/time tags from \"CreateDate\": exiftool '-time:all<$createdate' -wm w FILE"
            },
            {
                "flag": "-x",
                "long": null,
                "arg": null,
                "description": "Exclude the specified tag. There may be multiple -x options. This has the same effect as --TAG on the command line. See the --TAG documentation above for a complete description. Input-output text formatting Note that trailing spaces are removed from extracted values for most output text formats. The exceptions are -b, -csv, -j and -X."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Output information in the form of exiftool arguments, suitable for use with the -@ option when writing. May be combined with the -G option to include group names. This feature may be used to effectively copy tags between images, but allows the metadata to be altered by editing the intermediate file (\"out.args\" in this example): exiftool -args -G1 --filename --directory src.jpg > out.args exiftool -@ out.args -sep ', ' dst.jpg Note: Be careful when copying information with this technique since it is easy to write tags which are normally considered \"Unsafe\". For instance, the FileName and Directory tags are excluded in the example above to avoid renaming and moving the destination file. Also note that the second command above will produce warning messages for any tags which are not writable. As well, the -sep option should be used as in the second command above to maintain separate list items when writing metadata back to image files, and the -struct option may be used when extracting to preserve structured XMP information."
            },
            {
                "flag": "-b",
                "long": "--binary",
                "arg": null,
                "description": "Output requested metadata in binary format without tag names or descriptions (-b or -binary). This option is mainly used for extracting embedded images or other binary data, but it may also be useful for some text strings since control characters (such as newlines) are not replaced by '.' as they are in the default output. By default, list items are separated by a newline when extracted with the -b option, but this may be changed (see the -sep option for details). May be combined with -j, -php or -X to extract binary data in JSON, PHP or XML format, but note that \"Unsafe\" tags are not extracted as binary unless they are specified explicitly or the API RequestAll option is set to 3 or higher. With a leading double dash (--b or --binary), tags which contain binary data are suppressed in the output when reading."
            },
            {
                "flag": "-c",
                "long": null,
                "arg": null,
                "description": "Set the print format for GPS coordinates. FMT uses the same syntax as a \"printf\" format string. The specifiers correspond to degrees, minutes and seconds in that order, but minutes and seconds are optional. For example, the following table gives the output for the same coordinate using various formats: FMT Output ------------------- ------------------ \"%d deg %d' %.2f\"\\\" 54 deg 59' 22.80\" (default for reading) \"%d %d %.8f\" 54 59 22.80000000 (default for copying) \"%d deg %.4f min\" 54 deg 59.3800 min \"%.6f degrees\" 54.989667 degrees Notes: 1) To avoid loss of precision, the default coordinate format is different when copying tags using the -tagsFromFile option. 2) If the hemisphere is known, a reference direction (N, S, E or W) is appended to each printed coordinate, but adding a \"+\" to the format specifier (eg. \"%+.6f\") prints a signed coordinate instead. 3) This print formatting may be disabled with the -n option to extract coordinates as signed decimal degrees."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "If TYPE is \"ExifTool\" or not specified, this option sets the ExifTool character encoding for output tag values when reading and input values when writing, with a default of \"UTF8\". If no CHARSET is given, a list of available character sets is returned. Valid CHARSET values are: CHARSET Alias(es) Description ---------- --------------- ---------------------------------- UTF8 cp65001, UTF-8 UTF-8 characters (default) Latin cp1252, Latin1 Windows Latin1 (West European) Latin2 cp1250 Windows Latin2 (Central European) Cyrillic cp1251, Russian Windows Cyrillic Greek cp1253 Windows Greek Turkish cp1254 Windows Turkish Hebrew cp1255 Windows Hebrew Arabic cp1256 Windows Arabic Baltic cp1257 Windows Baltic Vietnam cp1258 Windows Vietnamese Thai cp874 Windows Thai DOSLatinUS cp437 DOS Latin US DOSLatin1 cp850 DOS Latin1 DOSCyrillic cp866 DOS Cyrillic MacRoman cp10000, Roman Macintosh Roman MacLatin2 cp10029 Macintosh Latin2 (Central Europe) MacCyrillic cp10007 Macintosh Cyrillic MacGreek cp10006 Macintosh Greek MacTurkish cp10081 Macintosh Turkish MacRomanian cp10010 Macintosh Romanian MacIceland cp10079 Macintosh Icelandic MacCroatian cp10082 Macintosh Croatian TYPE may be \"FileName\" to specify the encoding of file names on the command line (ie. FILE arguments). In Windows, this triggers use of wide-character i/o routines, thus providing support for Unicode file names. See the \"WINDOWS UNICODE FILE NAMES\" section below for details. Other values of TYPE listed below are used to specify the internal encoding of various meta information formats. TYPE Description Default --------- ------------------------------------------- ------- EXIF Internal encoding of EXIF \"ASCII\" strings (none) ID3 Internal encoding of ID3v1 information Latin IPTC Internal IPTC encoding to assume when Latin IPTC:CodedCharacterSet is not defined Photoshop Internal encoding of Photoshop IRB strings Latin QuickTime Internal encoding of QuickTime strings MacRoman RIFF Internal encoding of RIFF strings 0 See <https://exiftool.org/faq.html#Q10> for more information about coded character sets, and the Image::ExifTool Options for more details about the -charset settings."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Export information in CSV format, or import information if CSVFILE is specified. When importing, the CSV file must be in exactly the same format as the exported file. The first row of the CSVFILE must be the ExifTool tag names (with optional group names) for each column of the file, and values must be separated by commas. A special \"SourceFile\" column specifies the files associated with each row of information (and a SourceFile of \"*\" may be used to define default tags to be imported for all files which are combined with any tags specified for the specific SourceFile processed). The -csvDelim option may be used to change the input/output field delimiter if something other than a comma is required. The following examples demonstrate basic use of the -csv option: # generate CSV file with common tags from all images in a directory exiftool -common -csv dir > out.csv # update metadata for all images in a directory from CSV file exiftool -csv=a.csv dir Empty values are ignored when importing (unless the -f option is used and the API MissingTagValue is set to an empty string, in which case the tag is deleted). Also, FileName and Directory columns are ignored if they exist (ie. ExifTool will not attempt to write these tags with a CSV import). To force a tag to be deleted, use the -f option and set the value to \"-\" in the CSV file (or to the MissingTagValue if this API option was used). Multiple databases may be imported in a single command. When exporting a CSV file, the -g or -G option adds group names to the tag headings. If the -a option is used to allow duplicate tag names, the duplicate tags are only included in the CSV output if the column headings are unique. Adding the -G4 option ensures a unique column heading for each tag. The -b option may be added to output binary data, encoded in base64 if necessary (indicated by ASCII \"base64:\" as the first 7 bytes of the value). Values may also be encoded in base64 if the -charset option is used and the value contains invalid characters. When exporting specific tags, the CSV columns are arranged in the same order as the specified tags provided the column headings exactly match the specified tag names, otherwise the columns are sorted in alphabetical order. When importing from a CSV file, only files specified on the command line are processed. Any extra entries in the CSV file are ignored. List-type tags are stored as simple strings in a CSV file, but the -sep option may be used to split them back into separate items when importing. Special feature: -csv+=CSVFILE may be used to add items to existing lists. This affects only list-type tags. Also applies to the -j option. Note that this option is fundamentally different than all other output format options because it requires information from all input files to be buffered in memory before the output is written. This may result in excessive memory usage when processing a very large number of files with a single command. Also, it makes this option incompatible with the -w option. When processing a large number of files, it is recommended to either use the JSON (-j) or XML (-X) output format, or use -p to generate a fixed-column CSV file instead of using the -csv option."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Set the delimiter for separating CSV entries for CSV file input/output via the -csv option. STR may contain \"\\t\", \"\\n\", \"\\r\" and \"\\\\\" to represent TAB, LF, CR and '\\' respectively. A double quote is not allowed in the delimiter. Default is ','."
            },
            {
                "flag": "-d",
                "long": null,
                "arg": null,
                "description": "Set the format for date/time tag values. The FMT string may contain formatting codes beginning with a percent character (\"%\") to represent the various components of a date/time value. The specifics of the FMT syntax are system dependent -- consult the \"strftime\" man page on your system for details. The default format is equivalent to \"%Y:%m:%d %H:%M:%S\". This option has no effect on date-only or time-only tags and ignores timezone information if present. ExifTool adds a %f format code to represent fractional seconds, and supports an optional width to specify the number of digits after the decimal point (eg. %3f would give something like .437). Only one -d option may be used per command. Requires POSIX::strptime or Time::Piece for the inversion conversion when writing."
            },
            {
                "flag": "-D",
                "long": null,
                "arg": null,
                "description": "Show tag ID number in decimal when extracting information."
            },
            {
                "flag": "-E",
                "long": null,
                "arg": null,
                "description": "Escape characters in output tag values for HTML (-E), XML (-ex) or C (-ec). For HTML, all characters with Unicode code points above U+007F are escaped as well as the following 5 characters: & (&amp;) ' (&#39;) \" (&quot;) > (&gt;) and < (&lt;). For XML, only these 5 characters are escaped. The -E option is implied with -h, and -ex is implied with -X. For C, all control characters and the backslash are escaped. The inverse conversion is applied when writing tags."
            },
            {
                "flag": "-f",
                "long": null,
                "arg": null,
                "description": "Force printing of tags even if their values are not found. This option only applies when specific tags are requested on the command line (ie. not with wildcards or by \"-all\"). With this option, a dash (\"-\") is printed for the value of any missing tag, but the dash may be changed via the API MissingTagValue option. May also be used to add a 'flags' attribute to the -listx output, or to allow tags to be deleted when writing with the -csv=CSVFILE feature."
            },
            {
                "flag": "-g",
                "long": null,
                "arg": null,
                "description": "Organize output by tag group. NUM specifies a group family number, and may be 0 (general location), 1 (specific location), 2 (category), 3 (document number), 4 (instance number), 5 (metadata path), 6 (EXIF/TIFF format) or 7 (tag ID). -g0 is assumed if a family number is not specified. May be combined with other options to add group names to the output. Multiple families may be specified by separating them with colons. By default the resulting group name is simplified by removing any leading \"Main:\" and collapsing adjacent identical group names, but this can be avoided by placing a colon before the first family number (eg. -g:3:1). Use the -listg option to list group names for a specified family. The API SavePath and SaveFormat options are automatically enabled if the respective family 5 or 6 group names are requested. See the API GetGroup documentation for more information."
            },
            {
                "flag": "-G",
                "long": null,
                "arg": null,
                "description": "Same as -g but print group name for each tag. -G0 is assumed if NUM is not specified. May be combined with a number of other options to add group names to the output. Note that NUM may be added wherever -G is mentioned in the documentation. See the -g option above for details."
            },
            {
                "flag": "-h",
                "long": null,
                "arg": null,
                "description": "Use HTML table formatting for output. Implies the -E option. The formatting options -D, -H, -g, -G, -l and -s may be used in combination with -h to influence the HTML format."
            },
            {
                "flag": "-H",
                "long": null,
                "arg": null,
                "description": "Show tag ID number in hexadecimal when extracting information."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Generate a dynamic web page containing a hex dump of the EXIF information. This can be a very powerful tool for low-level analysis of EXIF information. The -htmlDump option is also invoked if the -v and -h options are used together. The verbose level controls the maximum length of the blocks dumped. An OFFSET may be given to specify the base for displayed offsets. If not provided, the EXIF/TIFF base offset is used. Use -htmlDump0 for absolute offsets. Currently only EXIF/TIFF and JPEG information is dumped, but the -u option can be used to give a raw hex dump of other file formats."
            },
            {
                "flag": "-j",
                "long": null,
                "arg": null,
                "description": "Use JSON (JavaScript Object Notation) formatting for console output, or import JSON file if JSONFILE is specified. This option may be combined with -g to organize the output into objects by group, or -G to add group names to each tag. List-type tags with multiple items are output as JSON arrays unless -sep is used. By default XMP structures are flattened into individual tags in the JSON output, but the original structure may be preserved with the -struct option (this also causes all list-type XMP tags to be output as JSON arrays, otherwise single-item lists would be output as simple strings). The -a option is implied when -json is used, but entries with identical JSON names are suppressed in the output. (-G4 may be used to ensure that all tags have unique JSON names.) Adding the -D or -H option changes tag values to JSON objects with \"val\" and \"id\" fields, and adding -l adds a \"desc\" field, and a \"num\" field if the numerical value is different from the converted \"val\". The -b option may be added to output binary data, encoded in base64 if necessary (indicated by ASCII \"base64:\" as the first 7 bytes of the value), and -t may be added to include tag table information (see -t for details). The JSON output is UTF-8 regardless of any -L or -charset option setting, but the UTF-8 validation is disabled if a character set other than UTF-8 is specified. If JSONFILE is specified, the file is imported and the tag definitions from the file are used to set tag values on a per-file basis. The special \"SourceFile\" entry in each JSON object associates the information with a specific target file. An object with a missing SourceFile or a SourceFile of \"*\" defines default tags for all target files which are combined with any tags specified for the specific SourceFile processed. The imported JSON file must have the same format as the exported JSON files with the exception that the -g option is not compatible with the import file format (use -G instead). Additionally, tag names in the input JSON file may be suffixed with a \"#\" to disable print conversion. Unlike CSV import, empty values are not ignored, and will cause an empty value to be written if supported by the specific metadata type. Tags are deleted by using the -f option and setting the tag value to \"-\" (or to the MissingTagValue setting if this API option was used). Importing with -j+=JSONFILE causes new values to be added to existing lists."
            },
            {
                "flag": "-l",
                "long": null,
                "arg": null,
                "description": "Use long 2-line Canon-style output format. Adds a description and unconverted value (if it is different from the converted value) to the XML, JSON or PHP output when -X, -j or -php is used. May also be combined with -listf, -listr or -listwf to add descriptions of the file types."
            },
            {
                "flag": "-L",
                "long": null,
                "arg": null,
                "description": "Use Windows Latin1 encoding (cp1252) for output tag values instead of the default UTF-8. When writing, -L specifies that input text values are Latin1 instead of UTF-8. Equivalent to \"-charset latin\"."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Set current language for tag descriptions and converted values. LANG is \"de\", \"fr\", \"ja\", etc. Use -lang with no other arguments to get a list of available languages. The default language is \"en\" if -lang is not specified. Note that tag/group names are always English, independent of the -lang setting, and translation of warning/error messages has not yet been implemented. May also be combined with -listx to output descriptions in one language only. By default, ExifTool uses UTF-8 encoding for special characters, but the the -L or -charset option may be used to invoke other encodings. Note that ExifTool uses Unicode::LineBreak if available to help preserve the column alignment of the plain text output for languages with a variable-width character set. Currently, the language support is not complete, but users are welcome to help improve this by submitting their own translations. To submit a translation, follow these steps (you must have Perl installed for this): 1. Download and unpack the latest Image-ExifTool full distribution. 2. 'cd' into the Image-ExifTool directory. 3. Run this command to make an XML file of the desired tags (eg. EXIF): ./exiftool -listx -exif:all > out.xml 4. Copy this text into a file called 'import.pl' in the exiftool directory: push @INC, 'lib'; require Image::ExifTool::TagInfoXML; my $file = shift or die \"Expected XML file name\\n\"; $Image::ExifTool::TagInfoXML::makeMissing = shift; Image::ExifTool::TagInfoXML::BuildLangModules($file,8); 5. Run the 'import.pl' script to Import the XML file, generating the 'MISSING' entries for your language (eg. Russian): perl import.pl out.xml ru 6. Edit the generated language module lib/Image/ExifTool/Lang/ru.pm, and search and replace all 'MISSING' strings in the file with your translations. 7. Email the module ('ru.pm' in this example) to philharvey66 at gmail.com 8. Thank you!!"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "For list-type tags, this causes only the item with the specified index to be extracted. INDEX is 0 for the first item in the list. Negative indices may also be used to reference items from the end of the list. Has no effect on single-valued tags. Also applies to tag values when copying from a tag, and in -if conditions."
            },
            {
                "flag": "-n",
                "long": "--printConv",
                "arg": null,
                "description": "Disable print conversion for all tags. By default, extracted values are converted to a more human-readable format, but the -n option disables this conversion, revealing the machine-readable values. For example: > exiftool -Orientation -S a.jpg Orientation: Rotate 90 CW > exiftool -Orientation -S -n a.jpg Orientation: 6 The print conversion may also be disabled on a per-tag basis by suffixing the tag name with a \"#\" character: > exiftool -Orientation# -Orientation -S a.jpg Orientation: 6 Orientation: Rotate 90 CW These techniques may also be used to disable the inverse print conversion when writing. For example, the following commands all have the same effect: > exiftool -Orientation='Rotate 90 CW' a.jpg > exiftool -Orientation=6 -n a.jpg > exiftool -Orientation#=6 a.jpg"
            },
            {
                "flag": "-p",
                "long": null,
                "arg": null,
                "description": "Print output in the format specified by the given file or string. The argument is interpreted as a string unless a file of that name exists, in which case the string is loaded from the contents of the file. Tag names in the format file or string begin with a \"$\" symbol and may contain leading group names and/or a trailing \"#\" (to disable print conversion). Case is not significant. Braces \"{}\" may be used around the tag name to separate it from subsequent text. Use $$ to represent a \"$\" symbol, and $/ for a newline. Multiple -p options may be used, each contributing a line (or more) of text to the output. Lines beginning with \"#[HEAD]\" and \"#[TAIL]\" are output before the first processed file and after the last processed file respectively. Lines beginning with \"#[SECT]\" and \"#[ENDS]\" are output before and after each section of files. A section is defined as a group of consecutive files with the same section header (eg. files are grouped by directory if \"#[SECT]\" contains $directory). Lines beginning with \"#[BODY]\" and lines not beginning with \"#\" are output for each processed file. Lines beginning with \"#[IF]\" are not output, but all BODY lines are skipped if any tag on an IF line doesn't exist. Other lines beginning with \"#\" are ignored. (To output a line beginning with \"#\", use \"#[BODY]#\".) For example, this format file: # this is a comment line #[HEAD]-- Generated by ExifTool $exifToolVersion -- File: $FileName - $DateTimeOriginal (f/$Aperture, ${ShutterSpeed}s, ISO $EXIF:ISO) #[TAIL]-- end -- with this command: exiftool -p test.fmt a.jpg b.jpg produces output like this: -- Generated by ExifTool 12.40 -- File: a.jpg - 2003:10:31 15:44:19 (f/5.6, 1/60s, ISO 100) File: b.jpg - 2006:05:23 11:57:38 (f/8.0, 1/13s, ISO 100) -- end -- The values of List-type tags with multiple items and Shortcut tags representing multiple tags are joined according the the -sep option setting when interpolated in the string. When -ee (-extractEmbedded) is combined with -p, embedded documents are effectively processed as separate input files. If a specified tag does not exist, a minor warning is issued and the line with the missing tag is not printed. However, the -f option may be used to set the value of missing tags to '-' (but this may be configured via the API MissingTagValue option), or the -m option may be used to ignore minor warnings and leave the missing values empty. Alternatively, -q -q may be used to simply suppress the warning messages. The \"Advanced formatting feature\" may be used to modify the values of individual tags with the -p option."
            },
            {
                "flag": "-l",
                "long": null,
                "arg": null,
                "description": "with -php, and duplicate tags are handled in the same way as with the -json option. As well, the -b option may be added to output binary data, and -t may be added to include tag table information (see -t for details). Here is a simple example showing how this could be used in a PHP script: <?php eval('$array=' . `exiftool -php -q image.jpg`); printr($array); ?>"
            },
            {
                "flag": "-s",
                "long": null,
                "arg": null,
                "description": "Short output format. Prints tag names instead of descriptions. Add NUM or up to 3 -s options for even shorter formats: -s1 or -s - print tag names instead of descriptions -s2 or -s -s - no extra spaces to column-align values -s3 or -s -s -s - print values only (no tag names) Also effective when combined with -t, -h, -X or -listx options."
            },
            {
                "flag": "-S",
                "long": null,
                "arg": null,
                "description": "Very short format. The same as -s2 or two -s options. Tag names are printed instead of descriptions, and no extra spaces are added to column-align values."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Specify separator string for items in list-type tags. When reading, the default is to join list items with \", \". When writing, this option causes values assigned to list- type tags to be split into individual items at each substring matching STR (otherwise they are not split by default). Space characters in STR match zero or more whitespace characters in the value. Note that an empty separator (\"\") is allowed, and will join items with no separator when reading, or split the value into individual characters when writing. For pure binary output (-b used without -j, -php or -X), the first -sep option specifies a list-item separator, and a second -sep option specifies a terminator for the end of the list (or after each value if not a list). In these strings, \"\\n\", \"\\r\" and \"\\t\" may be used to represent a newline, carriage return and tab respectively. By default, binary list items are separated by a newline, and no terminator is added."
            },
            {
                "flag": "",
                "long": "--sort",
                "arg": null,
                "description": "Sort output by tag description, or by tag name if the -s option is used. When sorting by description, the sort order will depend on the -lang option setting. Without the -sort option, tags appear in the order they were specified on the command line, or if not specified, the order they were extracted from the file. By default, tags are organized by groups when combined with the -g or -G option, but this grouping may be disabled with --sort."
            },
            {
                "flag": "",
                "long": "--struct",
                "arg": null,
                "description": "Output structured XMP information instead of flattening to individual tags. This option works well when combined with the XML (-X) and JSON (-j) output formats. For other output formats, XMP structures and lists are serialized into the same format as when writing structured information (see <https://exiftool.org/struct.html> for details). When copying, structured tags are copied by default unless --struct is used to disable this feature (although flattened tags may still be copied by specifying them individually unless -struct is used). These options have no effect when assigning new values since both flattened and structured tags may always be used when writing."
            },
            {
                "flag": "-t",
                "long": null,
                "arg": null,
                "description": "Output a tab-delimited list of description/values (useful for database import). May be combined with -s to print tag names instead of descriptions, or -S to print tag values only, tab-delimited on a single line. The -t option may be combined with -j, -php or -X to add tag table information (\"table\", tag \"id\", and \"index\" for cases where multiple conditional tags exist with the same ID)."
            },
            {
                "flag": "-T",
                "long": null,
                "arg": null,
                "description": "Output tag values in table form. Equivalent to -t -S -q -f."
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": "Print verbose messages. NUM specifies the level of verbosity in the range 0-5, with higher numbers being more verbose. If NUM is not given, then each -v option increases the level of verbosity by 1. With any level greater than 0, most other options are ignored and normal console output is suppressed unless specific tags are extracted. Using -v0 causes the console output buffer to be flushed after each line (which may be useful to avoid delays when piping exiftool output), and prints the name of each processed file when writing. Also see the -progress option."
            },
            {
                "flag": "-w",
                "long": null,
                "arg": null,
                "description": "Write console output to files with names ending in EXT, one for each source file. The output file name is obtained by replacing the source file extension (including the '.') with the specified extension (and a '.' is added to the start of EXT if it doesn't already contain one). Alternatively, a FMT string may be used to give more control over the output file name and directory. In the format string, %d, %f and %e represent the directory, filename and extension of the source file, and %c represents a copy number which is automatically incremented if the file already exists. %d includes the trailing '/' if necessary, but %e does not include the leading '.'. For example: -w %d%f.txt # same effect as \"-w txt\" -w dir/%f%e.out # write files to \"dir\" as \"FILEEXT.out\" -w dir2/%d%f.txt # write to \"dir2\", keeping dir structure -w a%c.txt # write to \"a.txt\" or \"a1.txt\" or \"a2.txt\"... Existing files will not be changed unless an exclamation point is added to the option name (ie. -w! or -textOut!) to overwrite the file, or a plus sign (ie. -w+ or -textOut+) to append to the existing file. Both may be used (ie. -w+! or -textOut+!) to overwrite output files that didn't exist before the command was run, and append the output from multiple source files. For example, to write one output file for all source files in each directory: exiftool -filename -createdate -T -w+! %d/out.txt -r DIR Capitalized format codes %D, %F, %E and %C provide slightly different alternatives to the lower case versions. %D does not include the trailing '/', %F is the full filename including extension, %E includes the leading '.', and %C increments the count for each processed file (see below). Notes: 1) In a Windows BAT file the \"%\" character is represented by \"%%\", so an argument like \"%d%f.txt\" is written as \"%%d%%f.txt\". 2) If the argument for -w does not contain a valid format code (eg. %f), then it is interpreted as a file extension, but there are three different ways to create a single output file from multiple source files: # 1. Shell redirection exiftool FILE1 FILE2 ... > out.txt # 2. With the -w option and a zero-width format code exiftool -w+! %0fout.txt FILE1 FILE2 ... # 3. With the -W option (see the -W option below) exiftool -W+! out.txt FILE1 FILE2 ... Advanced features: A substring of the original file name, directory or extension may be taken by specifying a field width immediately following the '%' character. If the width is negative, the substring is taken from the end. The substring position (characters to ignore at the start or end of the string) may be given by a second optional value after a decimal point. For example: Input File Name Format Specifier Output File Name ---------------- ---------------- ---------------- Picture-123.jpg %7f.txt Picture.txt Picture-123.jpg %-.4f.out Picture.out Picture-123.jpg %7f.%-3f Picture.123 Picture-123a.jpg Meta%-3.1f.txt Meta123.txt (Note that special characters may have a width of greater than one.) For %d and %D, the field width/position specifiers may be applied to the directory levels instead of substring position by using a colon instead of a decimal point in the format specifier. For example: Source Dir Format Result Notes ------------ ------ ---------- ------------------ pics/2012/02 %2:d pics/2012/ take top 2 levels pics/2012/02 %-:1d pics/2012/ up one directory level pics/2012/02 %:1d 2012/02/ ignore top level pics/2012/02 %1:1d 2012/ take 1 level after top pics/2012/02 %-1:D 02 bottom level folder name /Users/phil %:2d phil/ ignore top 2 levels (Note that the root directory counts as one level when an absolute path is used as in the last example above.) For %c, these modifiers have a different effects. If a field width is given, the copy number is padded with zeros to the specified width. A leading '-' adds a dash before the copy number, and a '+' adds an underline. By default, the copy number is omitted from the first file of a given name, but this can be changed by adding a decimal point to the modifier. For example: -w A%-cZ.txt # AZ.txt, A-1Z.txt, A-2Z.txt ... -w B%5c.txt # B.txt, B00001.txt, B00002.txt ... -w C%.c.txt # C0.txt, C1.txt, C2.txt ... -w D%-.c.txt # D-0.txt, D-1.txt, D-2.txt ... -w E%-.4c.txt # E-0000.txt, E-0001.txt, E-0002.txt ... -w F%-.4nc.txt # F-0001.txt, F-0002.txt, F-0003.txt ... -w G%+c.txt # G.txt, G1.txt G2.txt ... -w H%-lc.txt # H.txt, H-b.txt, H-c.txt ... -w I.%.3uc.txt # I.AAA.txt, I.AAB.txt, I.AAC.txt ... A special feature allows the copy number to be incremented for each processed file by using %C (upper case) instead of %c. This allows a sequential number to be added to output file names, even if the names are different. For %C, a copy number of zero is not omitted as it is with %c. A leading '-' causes the number to be reset at the start of each new directory, and '+' has no effect. The number before the decimal place gives the starting index, the number after the decimal place gives the field width. The following examples show the output filenames when used with the command \"exiftool rose.jpg star.jpg jet.jpg ...\": -w %C%f.txt # 0rose.txt, 1star.txt, 2jet.txt -w %f-%10C.txt # rose-10.txt, star-11.txt, jet-12.txt -w %.3C-%f.txt # 000-rose.txt, 001-star.txt, 002-jet.txt -w %57.4C%f.txt # 0057rose.txt, 0058star.txt, 0059jet.txt All format codes may be modified by 'l' or 'u' to specify lower or upper case respectively (ie. %le for a lower case file extension). When used to modify %c or %C, the numbers are changed to an alphabetical base (see example H above). Also, %c and %C may be modified by 'n' to count using natural numbers starting from 1, instead of 0 (see example F above). This same FMT syntax is used with the -o and -tagsFromFile options, although %c and %C are only valid for output file names."
            },
            {
                "flag": "-W",
                "long": null,
                "arg": null,
                "description": "This enhanced version of the -w option allows a separate output file to be created for each extracted tag. See the -w option documentation above for details of the basic functionality. Listed here are the differences between -W and -w: 1) With -W, a new output file is created for each extracted tag. 2) -W supports four additional format codes: %t, %g and %s represent the tag name, group name, and suggested extension for the output file (based on the format of the data), and %o represents the value of the OriginalRawFileName or OriginalFileName tag from the input file (including extension). The %g code may be followed by a single digit to specify the group family number (eg. %g1), otherwise family 0 is assumed. The substring width/position/case specifiers may be used with these format codes in exactly the same way as with %f and %e. 3) The argument for -W is interpreted as a file name if it contains no format codes. (For -w, this would be a file extension.) This change allows a simple file name to be specified, which, when combined with the append feature, provides a method to write metadata from multiple source files to a single output file without the need for shell redirection. For example, the following pairs of commands give the same result: # overwriting existing text file exiftool test.jpg > out.txt # shell redirection exiftool test.jpg -W+! out.txt # equivalent -W option # append to existing text file exiftool test.jpg >> out.txt # shell redirection exiftool test.jpg -W+ out.txt # equivalent -W option 4) Adding the -v option to -W sends a list of the tags and output file names to the console instead of giving a verbose dump of the entire file. (Unless appending all output to one file for each source file by using -W+ with an output file FMT that does not contain %t, %g, %s or %o.) 5) Individual list items are stored in separate files when -W is combined with -b, but note that for separate files to be created %c or %C must be used in FMT to give the files unique names."
            },
            {
                "flag": "",
                "long": "--Wext",
                "arg": null,
                "description": "This option is used to specify the type of output file(s) written by the -W option. An output file is written only if the suggested extension matches EXT. Multiple -Wext options may be used to write more than one type of file. Use --Wext to write all but the specified type(s)."
            },
            {
                "flag": "-X",
                "long": null,
                "arg": null,
                "description": "Use ExifTool-specific RDF/XML formatting for console output. Implies the -a option, so duplicate tags are extracted. The formatting options -b, -D, -H, -l, -s, -sep, -struct and -t may be used in combination with -X to affect the output, but note that the tag ID (-D, -H and -t), binary data (-b) and structured output (-struct) options are not effective for the short output (-s). Another restriction of -s is that only one tag with a given group and name may appear in the output. Note that the tag ID options (-D, -H and -t) will produce non-standard RDF/XML unless the -l option is also used. By default, -X outputs flattened tags, so -struct should be added if required to preserve XMP structures. List-type tags with multiple values are formatted as an RDF Bag, but they are combined into a single string when -s or -sep is used. Using -L changes the XML encoding from \"UTF-8\" to \"windows-1252\". Other -charset settings change the encoding only if there is a corresponding standard XML character set. The -b option causes binary data values to be written, encoded in base64 if necessary. The -t option adds tag table information to the output (see -t for details). Note: This output is NOT the same as XMP because it uses dynamically-generated property names corresponding to the ExifTool tag names with ExifTool family 1 group names as namespaces, and not the standard XMP properties and namespaces. To write XMP instead, use the -o option with an XMP extension for the output file. Processing control"
            },
            {
                "flag": "-a",
                "long": "--duplicates",
                "arg": null,
                "description": "Allow (-a) or suppress (--a) duplicate tag names to be extracted. By default, duplicate tags are suppressed when reading unless the -ee or -X options are used or the Duplicates option is enabled in the configuration file. This option has an affect when writing only to allow duplicate Warning messages to be shown. Duplicate tags are always extracted when copying."
            },
            {
                "flag": "-e",
                "long": "--composite",
                "arg": null,
                "description": "Extract existing tags only -- don't generate composite tags."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Extract information from embedded documents in EPS files, embedded EPS information and JPEG and Jpeg2000 images in PDF files, embedded MPF images in JPEG and MPO files, streaming metadata in AVCHD videos, and the resource fork of Mac OS files. Implies the -a option. Use -g3 or -G3 to identify the originating document for extracted information. Embedded documents containing sub-documents are indicated with dashes in the family 3 group name. (eg. \"Doc2-3\" is the 3rd sub-document of the 2nd embedded document.) Note that this option may increase processing time substantially, especially for PDF files with many embedded images or videos with streaming metadata. When used with -ee, the -p option is evaluated for each embedded document as if it were a separate input file. This allows, for example, generation of GPS track logs from timed metadata in videos. See <https://exiftool.org/geotag.html#Inverse> for examples. Setting NUM to 2 causes the H264 video stream in MP4 videos to be parsed until the first Supplemental Enhancement Information (SEI) message is decoded, or 3 to parse the entire H624 stream and decode all SEI information. For M2TS videos, a setting of 3 causes the entire file to be parsed in search of unlisted programs which may contain timed GPS."
            },
            {
                "flag": "",
                "long": "--ext",
                "arg": null,
                "description": "Process only files with (-ext) or without (--ext) a specified extension. There may be multiple -ext and --ext options. A plus sign may be added (ie. -ext+) to add the specified extension to the normally processed files. EXT may begin with a leading '.', which is ignored. Case is not significant. \"*\" may be used to process files with any extension (or none at all), as in the last three examples: exiftool -ext JPG DIR # process only JPG files exiftool --ext cr2 --ext dng DIR # supported files but CR2/DNG exiftool -ext+ txt DIR # supported files plus TXT exiftool -ext \"*\" DIR # process all files exiftool -ext \"*\" --ext xml DIR # process all but XML files exiftool -ext \"*\" --ext . DIR # all but those with no ext Using this option has two main advantages over specifying \"*.EXT\" on the command line: 1) It applies to files in subdirectories when combined with the -r option. 2) The -ext option is case-insensitive, which is useful when processing files on case-sensitive filesystems. Note that all files specified on the command line will be processed regardless of extension unless the -ext option is used."
            },
            {
                "flag": "-F",
                "long": null,
                "arg": null,
                "description": "Fix the base for maker notes offsets. A common problem with some image editors is that offsets in the maker notes are not adjusted properly when the file is modified. This may cause the wrong values to be extracted for some maker note entries when reading the edited file. This option allows an integer OFFSET to be specified for adjusting the maker notes base offset. If no OFFSET is given, ExifTool takes its best guess at the correct base. Note that exiftool will automatically fix the offsets for images which store original offset information (eg. newer Canon models). Offsets are fixed permanently if -F is used when writing EXIF to an image. eg) exiftool -F -exif:resolutionunit=inches image.jpg"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Increase speed of extracting information. With -fast (or -fast1), ExifTool will not scan to the end of a JPEG image to check for an AFCP or PreviewImage trailer, or past the first comment in GIF images or the audio/video data in WAV/AVI files to search for additional metadata. These speed benefits are small when reading images directly from disk, but can be substantial if piping images through a network connection. For more substantial speed benefits, -fast2 also causes exiftool to avoid extracting any EXIF MakerNote information. -fast3 avoids extracting metadata from the file, and returns only pseudo System tags, but still reads the file header to obtain an educated guess at FileType. -fast4 doesn't even read the file header, and returns only System tags and a FileType based on the file extension. -fast5 also disables generation of the Composite tags (like -e). Has no effect when writing. Note that a separate -fast setting may be used for evaluation of a -if condition, or when ordering files with the -fileOrder option. See the -if and -fileOrder options for details."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Set file processing order according to the sorted value of the specified TAG. For example, to process files in order of date: exiftool -fileOrder DateTimeOriginal DIR Additional -fileOrder options may be added for secondary sort keys. Numbers are sorted numerically, and all other values are sorted alphabetically. Files missing the specified tag are sorted last. The sort order may be reversed by prefixing the tag name with a \"-\" (eg. \"-fileOrder -createdate\"). Print conversion of the sorted values is disabled with the -n option, or a \"#\" appended to the tag name. Other formatting options (eg. -d) have no effect on the sorted values. Note that the -fileOrder option can have a large performance impact since it involves an additional processing pass of each file, but this impact may be reduced by specifying a NUM for the -fast level used during the metadata-extraction phase. For example, -fileOrder4 may be used if TAG is a pseudo System tag. If multiple -fileOrder options are used, the extraction is done at the lowest -fast level. Note that files are sorted across directory boundaries if multiple input directories are specified."
            },
            {
                "flag": "-i",
                "long": null,
                "arg": null,
                "description": "Ignore specified directory name. DIR may be either an individual folder name, or a full path. If a full path is specified, it must match the Directory tag exactly to be ignored. Use multiple -i options to ignore more than one directory name. A special DIR value of \"SYMLINKS\" (case sensitive) may be specified to avoid recursing into directories which are symbolic links when the -r option is used. As well, a value of \"HIDDEN\" (case sensitive) may be used to ignore files with names that start with a \".\" (ie. hidden files on Unix systems) when scanning a directory."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Specify a condition to be evaluated before processing each FILE. EXPR is a Perl-like logic expression containing tag names prefixed by \"$\" symbols. It is evaluated with the tags from each FILE in turn, and the file is processed only if the expression returns true. Unlike Perl variable names, tag names are not case sensitive and may contain a hyphen. As well, tag names may have a leading group names separated by colons, and/or a trailing \"#\" character to disable print conversion. The expression $GROUP:all evaluates to 1 if any tag exists in the specified \"GROUP\", or 0 otherwise (see note 2 below). When multiple -if options are used, all conditions must be satisfied to process the file. Returns an exit status of 2 if all files fail the condition. Below are a few examples: # extract shutterspeed from all Canon images in a directory exiftool -shutterspeed -if '$make eq \"Canon\"' dir # add one hour to all images created on or after Apr. 2, 2006 exiftool -alldates+=1 -if '$CreateDate ge \"2006:04:02\"' dir # set EXIF ISO value if possible, unless it is set already exiftool '-exif:iso<iso' -if 'not $exif:iso' dir # find images containing a specific keyword (case insensitive) exiftool -if '$keywords =~ /harvey/i' -filename dir Adding NUM to the -if option causes a separate processing pass to be executed for evaluating EXPR at a -fast level given by NUM (see the -fast option documentation for details). Without NUM, only one processing pass is done at the level specified by the -fast option. For example, using -if5 is possible if EXPR uses only pseudo System tags, and may significantly speed processing if enough files fail the condition. The expression has access to the current ExifTool object through $self, and the following special functions are available to allow short-circuiting of the file processing. Both functions have a return value of 1. Case is significant for function names. End() - end processing after this file EndDir() - end processing of files in this directory (not compatible with the B<-fileOrder> option) Notes: 1) The -n and -b options also apply to tags used in EXPR. 2) Some binary data blocks are not extracted unless specified explicitly. These tags are not available for use in the -if condition unless they are also specified on the command line. The alternative is to use the $GROUP:all syntax. (eg. Use $exif:all instead of $exif in EXPR to test for the existence of EXIF tags.) 3) Tags in the string are interpolated the same way as with -p before the expression is evaluated. In this interpolation, $/ is converted to a newline and $$ represents a single \"$\" symbol (so Perl variables, if used, require a double \"$\"). 4) The condition may only test tags from the file being processed. To process one file based on tags from another, two steps are required. For example, to process XMP sidecar files in directory \"DIR\" based on tags from the associated NEF: exiftool -if EXPR -p '$directory/$filename' -ext nef DIR > nef.txt exiftool -@ nef.txt -srcfile %d%f.xmp ... 5) The -a option has no effect on the evaluation of the expression, and the values of duplicate tags are accessible only by specifying a group name (such as a family 4 instance number, eg. $Copy1:TAG, $Copy2:TAG, etc). 6) A special \"OK\" UserParam is available to test the success of the previous command when -execute was used, and may be used like any other tag in the condition (ie. \"$OK\")."
            },
            {
                "flag": "-m",
                "long": null,
                "arg": null,
                "description": "Ignore minor errors and warnings. This enables writing to files with minor errors and disables some validation checks which could result in minor warnings. Generally, minor errors/warnings indicate a problem which usually won't result in loss of metadata if ignored. However, there are exceptions, so ExifTool leaves it up to you to make the final decision. Minor errors and warnings are indicated by \"[minor]\" at the start of the message. Warnings which affect processing when ignored are indicated by \"[Minor]\" (with a capital \"M\"). Note that this causes missing values in -tagsFromFile, -p and -if strings to be set to an empty string rather than an undefined value."
            },
            {
                "flag": "-o",
                "long": null,
                "arg": null,
                "description": "Set the output file or directory name when writing information. Without this option, when any \"real\" tags are written the original file is renamed to \"FILEoriginal\" and output is written to FILE. When writing only FileName and/or Directory \"pseudo\" tags, -o causes the file to be copied instead of moved, but directories specified for either of these tags take precedence over that specified by the -o option. OUTFILE may be \"-\" to write to stdout. The output file name may also be specified using a FMT string in which %d, %f and %e represent the directory, file name and extension of FILE. Also, %c may be used to add a copy number. See the -w option for FMT string examples. The output file is taken to be a directory name if it already exists as a directory or if the name ends with '/'. Output directories are created if necessary. Existing files will not be overwritten. Combining the -overwriteoriginal option with -o causes the original source file to be erased after the output file is successfully written. A special feature of this option allows the creation of certain types of files from scratch, or with the metadata from another type of file. The following file types may be created using this technique: XMP, EXIF, EXV, MIE, ICC/ICM, VRD, DR4 The output file type is determined by the extension of OUTFILE (specified as \"-.EXT\" when writing to stdout). The output file is then created from a combination of information in FILE (as if the -tagsFromFile option was used), and tag values assigned on the command line. If no FILE is specified, the output file may be created from scratch using only tags assigned on the command line."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Overwrite the original FILE (instead of preserving it by adding \"original\" to the file name) when writing information to an image. Caution: This option should only be used if you already have separate backup copies of your image files. The overwrite is implemented by renaming a temporary file to replace the original. This deletes the original file and replaces it with the edited version in a single operation. When combined with -o, this option causes the original file to be deleted if the output file was successfully written (ie. the file is moved instead of copied)."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Similar to -overwriteoriginal except that an extra step is added to allow the original file attributes to be preserved. For example, on a Mac this causes the original file creation date, type, creator, label color, icon, Finder tags, other extended attributes and hard links to the file to be preserved (but note that the Mac OS resource fork is always preserved unless specifically deleted with \"-rsrc:all=\"). This is implemented by opening the original file in update mode and replacing its data with a copy of a temporary file before deleting the temporary. The extra step results in slower performance, so the -overwriteoriginal option should be used instead unless necessary. Note that this option reverts to the behaviour of the -overwriteoriginal option when also writing the FileName and/or Directory tags."
            },
            {
                "flag": "-P",
                "long": null,
                "arg": null,
                "description": "Preserve the filesystem modification date/time (\"FileModifyDate\") of the original file when writing. Note that some filesystems store a creation date (ie. \"FileCreateDate\" on Windows and Mac systems) which is not affected by this option. This creation date is preserved on Windows systems where Win32API::File and Win32::API are available regardless of this setting. For other systems, the -overwriteoriginalinplace option may be used if necessary to preserve the creation date. The -P option is superseded by any value written to the FileModifyDate tag."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Specify password to allow processing of password-protected PDF documents. If a password is required but not given, a warning is issued and the document is not processed. This option is ignored if a password is not required."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Show the progress when processing files. Without a colon, the -progress option adds a progress count in brackets after the name of each processed file, giving the current file number and the total number of files to be processed. Implies the -v0 option, causing the names of processed files to also be printed when writing. When combined with the -if option, the total count includes all files before the condition is applied, but files that fail the condition will not have their names printed. If followed by a colon (ie. -progress:), the console window title is set according to the specified TITLE string. If no TITLE is given, a default TITLE string of \"ExifTool %p%%\" is assumed. In the string, %f represents the file name, %p is the progress as a percent, %r is the progress as a ratio, %##b is a progress bar of width \"##\" (20 characters if \"##\" is omitted), and %% is a % character. May be combined with the normal -progress option to also show the progress count in console messages. (Note: For this feature to function correctly on Mac/Linux, stderr must go to the console.)"
            },
            {
                "flag": "-q",
                "long": null,
                "arg": null,
                "description": "Quiet processing. One -q suppresses normal informational messages, and a second -q suppresses warnings as well. Error messages can not be suppressed, although minor errors may be downgraded to warnings with the -m option, which may then be suppressed with \"-q -q\"."
            },
            {
                "flag": "-r",
                "long": null,
                "arg": null,
                "description": "Recursively process files in subdirectories. Only meaningful if FILE is a directory name. Subdirectories with names beginning with \".\" are not processed unless \".\" is added to the option name (ie. -r. or -recurse.). By default, exiftool will also follow symbolic links to directories if supported by the system, but this may be disabled with \"-i SYMLINKS\" (see the -i option for details). Combine this with -ext options to control the types of files processed."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Scan all files (even unsupported formats) for XMP information unless found already. When combined with the -fast option, only unsupported file types are scanned. Warning: It can be time consuming to scan large files."
            },
            {
                "flag": "-u",
                "long": null,
                "arg": null,
                "description": "Extract values of unknown tags. Add another -u to also extract unknown information from binary data blocks. This option applies to tags with numerical tag ID's, and causes tag names like \"Exif0xc5d9\" to be generated for unknown information. It has no effect on information types which have human-readable tag ID's (such as XMP), since unknown tags are extracted automatically from these formats."
            },
            {
                "flag": "-U",
                "long": null,
                "arg": null,
                "description": "Extract values of unknown tags as well as unknown information from some binary data blocks. This is the same as two -u options."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Set mode for writing/creating tags. MODE is a string of one or more characters from the list below. The default write mode is \"wcg\". w - Write existing tags c - Create new tags g - create new Groups as necessary For example, use \"-wm cg\" to only create new tags (and avoid editing existing ones). The level of the group is the SubDirectory level in the metadata structure. For XMP or IPTC this is the full XMP/IPTC block (the family 0 group), but for EXIF this is the individual IFD (the family 1 group)."
            },
            {
                "flag": "-z",
                "long": null,
                "arg": null,
                "description": "When reading, causes information to be extracted from .gz and .bz2 compressed images (only one image per archive; requires gzip and bzip2 to be available). When writing, causes compressed information to be written if supported by the metadata format (eg. compressed textual metadata in PNG), disables the recommended padding in embedded XMP (saving 2424 bytes when writing XMP in a file), and writes XMP in shorthand format -- the equivalent of setting the API Compress=1 and Compact=\"NoPadding,Shorthand\". Other options -@ ARGFILE Read command-line arguments from the specified file. The file contains one argument per line (NOT one option per line -- some options require additional arguments, and all arguments must be placed on separate lines). Blank lines and lines beginning with \"#\" are ignored (unless they start with \"#[CSTR]\", in which case the rest of the line is treated as a C string, allowing standard C escape sequences such as \"\\n\" for a newline). White space at the start of a line is removed. Normal shell processing of arguments is not performed, which among other things means that arguments should not be quoted and spaces are treated as any other character. ARGFILE may exist relative to either the current directory or the exiftool directory unless an absolute pathname is given. For example, the following ARGFILE will set the value of Copyright to \"Copyright YYYY, Phil Harvey\", where \"YYYY\" is the year of CreateDate: -d %Y -copyright<Copyright $createdate, Phil Harvey Arguments in ARGFILE behave exactly the same as if they were entered at the location of the -@ option on the command line, with the exception that the -config and -commonargs options may not be used in an ARGFILE."
            },
            {
                "flag": "-k",
                "long": null,
                "arg": null,
                "description": "Pause with the message \"-- press any key --\" or \"-- press RETURN --\" (depending on your system) before terminating. This option is used to prevent the command window from closing when run as a Windows drag and drop application."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Print a list of all valid tag names (-list), all writable tag names (-listw), all supported file extensions (-listf), all recognized file extensions (-listr), all writable file extensions (-listwf), all tag groups [in a specified family] (-listg[NUM]), all deletable tag groups (-listd), or an XML database of tag details including language translations (-listx). The -list, -listw and -listx options may be followed by an additional argument of the form \"-GROUP:All\" to list only tags in a specific group, where \"GROUP\" is one or more family 0-2 group names (excepting EXIF IFD groups) separated by colons. With -listg, NUM may be given to specify the group family, otherwise family 0 is assumed. The -l option may be combined with -listf, -listr or -listwf to add file descriptions to the list. The -lang option may be combined with -listx to output descriptions in a single language. Here are some examples: -list # list all tag names -list -EXIF:All # list all EXIF tags -list -xmp:time:all # list all XMP tags relating to time -listw -XMP-dc:All # list all writable XMP-dc tags -listf # list all supported file extensions -listr # list all recognized file extensions -listwf # list all writable file extensions -listg1 # list all groups in family 1 -listd # list all deletable groups -listx -EXIF:All # list database of EXIF tags in XML format -listx -XMP:All -s # list short XML database of XMP tags When combined with -listx, the -s option shortens the output by omitting the descriptions and values (as in the last example above), and -f adds a 'flags' attribute if applicable. The flags are formatted as a comma-separated list of the following possible values: Avoid, Binary, List, Mandatory, Permanent, Protected, Unknown and Unsafe (see the Tag Name documentation). For XMP List tags, the list type (Alt, Bag or Seq) is added to the flags, and flattened structure tags are indicated by a Flattened flag. Note that none of the -list options require an input FILE."
            },
            {
                "flag": "-v",
                "long": null,
                "arg": null,
                "description": "information (see the README file of the full distribution for more details about optional libraries), or -v2 to also list the Perl include directories. -- Indicates the end of options. Any remaining arguments are treated as file names, even if they begin with a dash (\"-\"). Special features"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Geotag images from the specified GPS track log file. Using the -geotag option is equivalent to writing a value to the \"Geotag\" tag. The GPS position is interpolated from the track at a time specified by the value written to the \"Geotime\" tag. If \"Geotime\" is not specified, the value is copied from \"DateTimeOriginal#\" (the \"#\" is added to copy the unformatted value, avoiding potential conflicts with the -d option). For example, the following two commands are equivalent: exiftool -geotag trk.log image.jpg exiftool -geotag trk.log \"-Geotime<DateTimeOriginal#\" image.jpg When the \"Geotime\" value is converted to UTC, the local system timezone is assumed unless the date/time value contains a timezone. Writing \"Geotime\" causes the following tags to be written (provided they can be calculated from the track log, and they are supported by the destination metadata format): GPSLatitude, GPSLatitudeRef, GPSLongitude, GPSLongitudeRef, GPSAltitude, GPSAltitudeRef, GPSDateStamp, GPSTimeStamp, GPSDateTime, GPSTrack, GPSTrackRef, GPSSpeed, GPSSpeedRef, GPSImgDirection, GPSImgDirectionRef, GPSPitch, GPSRoll, AmbientTemperature and CameraElevationAngle. By default, tags are created in EXIF, and updated in XMP only if they already exist. However, \"EXIF:Geotime\" or \"XMP:Geotime\" may be specified to write only EXIF or XMP tags respectively. Note that GPSPitch and GPSRoll are non-standard, and require user-defined tags in order to be written. The \"Geosync\" tag may be used to specify a time correction which is applied to each \"Geotime\" value for synchronization with GPS time. For example, the following command compensates for image times which are 1 minute and 20 seconds behind GPS: exiftool -geosync=+1:20 -geotag a.log DIR Advanced \"Geosync\" features allow a linear time drift correction and synchronization from previously geotagged images. See \"geotag.html\" in the full ExifTool distribution for more information. Multiple -geotag options may be used to concatenate GPS track log data. Also, a single -geotag option may be used to load multiple track log files by using wildcards in the TRKFILE name, but note that in this case TRKFILE must be quoted on most systems (with the notable exception of Windows) to prevent filename expansion. For example: exiftool -geotag \"TRACKDIR/*.log\" IMAGEDIR Currently supported track file formats are GPX, NMEA RMC/GGA/GLL, KML, IGC, Garmin XML and TCX, Magellan PMGNTRK, Honeywell PTNTHPR, Bramor gEO, Winplus Beacon TXT, and GPS/IMU CSV files. See \"GEOTAGGING EXAMPLES\" for examples. Also see \"geotag.html\" in the full ExifTool distribution and the Image::ExifTool Options for more details and for information about geotag configuration options."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Shift all formatted date/time values by the specified amount when reading. Does not apply to unformatted (-n) output. SHIFT takes the same form as the date/time shift when writing (see Image::ExifTool::Shift.pl for details), with a negative shift being indicated with a minus sign (\"-\") at the start of the SHIFT string. For example: # return all date/times, shifted back by 1 hour exiftool -globalTimeShift -1 -time:all a.jpg # set the file name from the shifted CreateDate (-1 day) for # all images in a directory exiftool \"-filename<createdate\" -globaltimeshift \"-0:0:1 0:0:0\" \\ -d %Y%m%d-%H%M%S.%%e dir"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Add features from specified plug-in MODULE. Currently, the MWG module is the only plug- in module distributed with exiftool. This module adds read/write support for tags as recommended by the Metadata Working Group. As a convenience, \"-use MWG\" is assumed if the \"MWG\" group is specified for any tag on the command line. See the MWG Tags documentation for more details. Note that this option is not reversible, and remains in effect until the application terminates, even across the -execute option. Utilities"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": ""
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "These utility options automate the maintenance of the \"original\" files created by exiftool. They have no effect on files without an \"original\" copy. The -restoreoriginal option restores the specified files from their original copies by renaming the \"original\" files to replace the edited versions. For example, the following command restores the originals of all JPG images in directory \"DIR\": exiftool -restoreoriginal -ext jpg DIR The -deleteoriginal option deletes the \"original\" copies of all files specified on the command line. Without a trailing \"!\" this option prompts for confirmation before continuing. For example, the following command deletes \"a.jpgoriginal\" if it exists, after asking \"Are you sure?\": exiftool -deleteoriginal a.jpg These options may not be used with other options to read or write tag values in the same command, but may be combined with options such -ext, -if, -r, -q and -v. Advanced options Among other things, the advanced options allow complex processing to be performed from a single command without the need for additional scripting. This may be particularly useful for implementations such as Windows drag-and-drop applications. These options may also be used to improve performance in multi-pass processing by reducing the overhead required to load exiftool for each invocation."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Set ExifTool API option. OPT is an API option name. The option value is set to 1 if =VAL is omitted. If VAL is omitted, the option value is set to undef if \"=\" is used, or an empty string with \"^=\". See Image::ExifTool Options for a list of available API options. This overrides API options set via the config file."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Specifies that all arguments following this option are common to all executed commands when -execute is used. This and the -config option are the only options that may not be used inside a -@ ARGFILE. Note that by definition this option and its arguments MUST come after all other options on the command line."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Load specified configuration file instead of the default \".ExifToolconfig\". If used, this option must come before all other arguments on the command line and applies to all -execute'd commands. The CFGFILE must exist relative to the current working directory or the exiftool application directory unless an absolute path is specified. Loading of the default config file may be disabled by setting CFGFILE to an empty string (ie. \"\"). See <https://exiftool.org/config.html> and configfiles/example.config in the full ExifTool distribution for details about the configuration file syntax."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Echo TEXT to stdout (-echo or -echo1) or stderr (-echo2). Text is output as the command line is parsed, before the processing of any input files. NUM may also be 3 or 4 to output text (to stdout or stderr respectively) after processing is complete. For -echo3 and -echo4, \"${status}\" may be used in the TEXT string to represent the numerical exit status of the command (see \"EXIT STATUS\")."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Save the names of files giving errors (NUM missing or 1), files that were unchanged (NUM is 2), files that fail the -if condition (NUM is 4), or any combination thereof by summing NUM (eg. -efile3 is the same has having both -efile and -efile2 options with the same ERRFILE). By default, file names are appended to any existing ERRFILE, but ERRFILE is overwritten if an exclamation point is added to the option (eg. -efile!). Saves the name of the file specified by the -srcfile option if applicable."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Execute command for all arguments up to this point on the command line (plus any arguments specified by -commonargs). The result is as if the commands were executed as separate command lines (with the exception of the -config and -use options which remain in effect for subsequent commands). Allows multiple commands to be executed from a single command line. NUM is an optional number that is echoed in the \"{ready}\" message when using the -stayopen feature. If a NUM is specified, the -q option no longer suppresses the output \"{readyNUM}\" message."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "List directories themselves instead of their contents. This option effectively causes directories to be treated as normal files when reading and writing. For example, with this option the output of the \"ls -la\" command on Mac/Linux may be approximated by this exiftool command: exiftool -listdir -T -ls-l -api systemtags -fast5 .* * (The -T option formats the output in tab-separated columns, -ls-l is a shortcut tag, the API SystemTags option is required to extract some necessary tags, and the -fast5 option is added for speed since only system tags are being extracted.)"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Specify a different source file to be processed based on the name of the original FILE. This may be useful in some special situations for processing related preview images or sidecar files. See the -w option for a description of the FMT syntax. Note that file name FMT strings for all options are based on the original FILE specified from the command line, not the name of the source file specified by -srcfile. For example, to copy metadata from NEF files to the corresponding JPG previews in a directory where other JPG images may exist: exiftool -ext nef -tagsfromfile @ -srcfile %d%f.jpg dir If more than one -srcfile option is specified, the files are tested in order and the first existing source file is processed. If none of the source files already exist, then exiftool uses the first -srcfile specified. A FMT of \"@\" may be used to represent the original FILE, which may be useful when specifying multiple -srcfile options (eg. to fall back to processing the original FILE if no sidecar exists). When this option is used, two special UserParam tags (OriginalFileName and OriginalDirectory) are generated to allow access to the original FILE name and directory."
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "If FLAG is 1 or \"True\" (case insensitive), causes exiftool keep reading from the -@ ARGFILE even after reaching the end of file. This feature allows calling applications to pre-load exiftool, thus avoiding the overhead of loading exiftool for each command. The procedure is as follows: 1) Execute \"exiftool -stayopen True -@ ARGFILE\", where ARGFILE is the name of an existing (possibly empty) argument file or \"-\" to pipe arguments from the standard input. 2) Write exiftool command-line arguments to ARGFILE, one argument per line (see the -@ option for details). 3) Write \"-execute\\n\" to ARGFILE, where \"\\n\" represents a newline sequence. (Note: You may need to flush your write buffers here if using buffered output.) ExifTool will then execute the command with the arguments received up to this point, send a \"{ready}\" message to stdout when done (unless the -q or -T option is used), and continue trying to read arguments for the next command from ARGFILE. To aid in command/response synchronization, any number appended to the -execute option is echoed in the \"{ready}\" message. For example, \"-execute613\" results in \"{ready613}\". When this number is added, -q no longer suppresses the \"{ready}\" message. (Also, see the -echo3 and -echo4 options for additional ways to pass signals back to your application.) 4) Repeat steps 2 and 3 for each command. 5) Write \"-stayopen\\nFalse\\n\" (or \"-stayopen\\n0\\n\") to ARGFILE when done. This will cause exiftool to process any remaining command-line arguments then exit normally. The input ARGFILE may be changed at any time before step 5 above by writing the following lines to the currently open ARGFILE: -stayopen True -@ NEWARGFILE This causes ARGFILE to be closed, and NEWARGFILE to be kept open. (Without the -stayopen here, exiftool would have returned to reading arguments from ARGFILE after reaching the end of NEWARGFILE.) Note: When writing arguments to a disk file there is a delay of up to 0.01 seconds after writing \"-execute\\n\" before exiftool starts processing the command. This delay may be avoided by sending a CONT signal to the exiftool process immediately after writing \"-execute\\n\". (There is no associated delay when writing arguments via a pipe with \"-@ -\", so the signal is not necessary when using this technique.)"
            },
            {
                "flag": "",
                "long": null,
                "arg": null,
                "description": "Set user parameter. PARAM is an arbitrary user parameter name. This is an interface to the API UserParam option (see the Image::ExifTool Options documentation), and provides a method to access user-defined parameters in arguments to the -if and -p options as if they were any other tag. Appending a hash tag (\"#\") to PARAM (eg. \"-userParam MyTag#=yes\") also causes the parameter to be extracted as a normal tag in the UserParam group. Similar to the -api option, the parameter value is set to 1 if =VAL is omitted, undef if just VAL is omitted with \"=\", or an empty string if VAL is omitted with \"^=\". exiftool -p '$test from $filename' -userparam test=Hello FILE Advanced formatting feature An advanced formatting feature allows modification of the value of any tag interpolated within a -if or -p option argument, or a -tagsFromFile redirection string. Tag names within these strings are prefixed by a \"$\" symbol, and an arbitrary Perl expression may be applied to the tag value by placing braces around the tag name and inserting the expression after the name, separated by a semicolon (ie. \"${TAG;EXPR}\"). The expression acts on the value of the tag through the default input variable ($), and has access to the full ExifTool API through the current ExifTool object ($self) and the tag key ($tag). It may contain any valid Perl code, including translation (\"tr///\") and substitution (\"s///\") operations, but note that braces within the expression must be balanced. The example below prints the camera Make with spaces translated to underlines, and multiple consecutive underlines replaced by a single underline: exiftool -p '${make;tr/ //;s/+//g}' image.jpg An \"@\" may be added after the tag name to make the expression act on individual list items for list-type tags, simplifying list processing. Set $ to undef to remove an item from the list. As an example, the following command returns all subjects not containing the string \"xxx\": exiftool -p '${subject@;$=undef if /xxx/}' image.jpg A default expression of \"tr(/\\\\?*:|\"<>\\0)()d\" is assumed if the expression is empty (ie. \"${TAG;}\"). This removes the characters / \\ ? * : | < > and null from the printed value. (These characters are illegal in Windows file names, so this feature is useful if tag values are used in file names.) Helper functions \"DateFmt\" Simplifies reformatting of individual date/time values. This function acts on a standard EXIF-formatted date/time value in $ and formats it according to the specified format string (see the -d option). To avoid trying to reformat an already-formatted date/time value, a \"#\" must be added to the tag name (as in the example below) if the -d option is also used. For example: exiftool -p '${createdate#;DateFmt(\"%Y-%m-%d%H%M%S\")}' a.jpg \"ShiftTime\" Shifts EXIF-formatted date/time string by a specified amount. Start with a leading minus sign to shift backwards in time. See Image::ExifTool::Shift.pl for details about shift syntax. For example, to shift a date/time value back by one year: exiftool -p '${createdate;ShiftTime(\"-1:0:0 0\")}' a.jpg \"NoDups\" Removes duplicate items from a list with a separator specified by the -sep option. This function is most useful when copying list-type tags. For example, the following command may be used to remove duplicate Keywords: exiftool -sep '##' '-keywords<${keywords;NoDups}' a.jpg The -sep option is necessary to split the string back into individual list items when writing to a list-type tag. An optional flag argument may be set to 1 to cause \"NoDups\" to set $ to undef if no duplicates existed, thus preventing the file from being rewritten unnecessarily: exiftool -sep '##' '-keywords<${keywords;NoDups(1)}' a.jpg Note that function names are case sensitive."
            }
        ],
        "examples": [],
        "see_also": [
            {
                "name": "ExifTool",
                "section": "3pm",
                "url": "https://www.chedong.com/phpMan.php/man/ExifTool/3pm/json"
            },
            {
                "name": "TagNames",
                "section": "3pm",
                "url": "https://www.chedong.com/phpMan.php/man/TagNames/3pm/json"
            },
            {
                "name": "Shortcuts",
                "section": "3pm",
                "url": "https://www.chedong.com/phpMan.php/man/Shortcuts/3pm/json"
            }
        ],
        "section_outline": [
            {
                "name": "NAME",
                "lines": 2,
                "subsections": []
            },
            {
                "name": "SYNOPSIS",
                "lines": 1,
                "subsections": [
                    {
                        "name": "Reading",
                        "lines": 2
                    },
                    {
                        "name": "Writing",
                        "lines": 2
                    },
                    {
                        "name": "Copying",
                        "lines": 2
                    },
                    {
                        "name": "Other",
                        "lines": 7
                    }
                ]
            },
            {
                "name": "DESCRIPTION",
                "lines": 6,
                "subsections": [
                    {
                        "name": "-csv= -json= -tagsFromFile",
                        "lines": 77
                    }
                ]
            },
            {
                "name": "OPTIONS",
                "lines": 8,
                "subsections": [
                    {
                        "name": "Option Overview",
                        "lines": 106
                    },
                    {
                        "name": "Option Details",
                        "lines": 131
                    },
                    {
                        "name": "-tagsFromFile",
                        "lines": 123
                    },
                    {
                        "name": "-x -exclude",
                        "lines": 9,
                        "flag": "-x"
                    },
                    {
                        "name": "-args -argFormat",
                        "lines": 18
                    },
                    {
                        "name": "-b --b -binary --binary",
                        "lines": 13,
                        "flag": "-b",
                        "long": "--binary"
                    },
                    {
                        "name": "-c -coordFormat",
                        "lines": 24,
                        "flag": "-c"
                    },
                    {
                        "name": "-charset",
                        "lines": 51
                    },
                    {
                        "name": "-csv",
                        "lines": 54
                    },
                    {
                        "name": "-csvDelim",
                        "lines": 4
                    },
                    {
                        "name": "-d -dateFormat",
                        "lines": 11,
                        "flag": "-d"
                    },
                    {
                        "name": "-D -decimal",
                        "lines": 2,
                        "flag": "-D"
                    },
                    {
                        "name": "-E -ex -ec -escapeHTML -escapeXML -escapeC",
                        "lines": 7,
                        "flag": "-E"
                    },
                    {
                        "name": "-f -forcePrint",
                        "lines": 7,
                        "flag": "-f"
                    },
                    {
                        "name": "-g -groupHeadings",
                        "lines": 12,
                        "flag": "-g"
                    },
                    {
                        "name": "-G -groupNames",
                        "lines": 5,
                        "flag": "-G"
                    },
                    {
                        "name": "-h -htmlFormat",
                        "lines": 4,
                        "flag": "-h"
                    },
                    {
                        "name": "-H -hex",
                        "lines": 2,
                        "flag": "-H"
                    },
                    {
                        "name": "-htmlDump",
                        "lines": 8
                    },
                    {
                        "name": "-j -json",
                        "lines": 33,
                        "flag": "-j"
                    },
                    {
                        "name": "-l -long",
                        "lines": 5,
                        "flag": "-l"
                    },
                    {
                        "name": "-L -latin",
                        "lines": 4,
                        "flag": "-L"
                    },
                    {
                        "name": "-lang",
                        "lines": 44
                    },
                    {
                        "name": "-listItem",
                        "lines": 5
                    },
                    {
                        "name": "-n --printConv",
                        "lines": 23,
                        "flag": "-n",
                        "long": "--printConv"
                    },
                    {
                        "name": "-p -printFormat",
                        "lines": 53,
                        "flag": "-p"
                    },
                    {
                        "name": "-php -g -G -D -H -l -sep -struct",
                        "lines": 10,
                        "flag": "-l"
                    },
                    {
                        "name": "-s -short",
                        "lines": 9,
                        "flag": "-s"
                    },
                    {
                        "name": "-S -veryShort",
                        "lines": 3,
                        "flag": "-S"
                    },
                    {
                        "name": "-sep -separator",
                        "lines": 15
                    },
                    {
                        "name": "-sort --sort",
                        "lines": 7,
                        "long": "--sort"
                    },
                    {
                        "name": "-struct --struct",
                        "lines": 9,
                        "long": "--struct"
                    },
                    {
                        "name": "-t -tab",
                        "lines": 6,
                        "flag": "-t"
                    },
                    {
                        "name": "-T -table",
                        "lines": 2,
                        "flag": "-T"
                    },
                    {
                        "name": "-v -verbose",
                        "lines": 8,
                        "flag": "-v"
                    },
                    {
                        "name": "-w -textOut",
                        "lines": 118,
                        "flag": "-w"
                    },
                    {
                        "name": "-W -tagOut",
                        "lines": 37,
                        "flag": "-W"
                    },
                    {
                        "name": "-Wext --Wext -tagOutExt",
                        "lines": 5,
                        "long": "--Wext"
                    },
                    {
                        "name": "-X -xmlFormat",
                        "lines": 23,
                        "flag": "-X"
                    },
                    {
                        "name": "-a --a -duplicates --duplicates",
                        "lines": 6,
                        "flag": "-a",
                        "long": "--duplicates"
                    },
                    {
                        "name": "-e --composite",
                        "lines": 2,
                        "flag": "-e",
                        "long": "--composite"
                    },
                    {
                        "name": "-ee -extractEmbedded",
                        "lines": 18
                    },
                    {
                        "name": "-ext --ext -extension",
                        "lines": 21,
                        "long": "--ext"
                    },
                    {
                        "name": "-F -fixBase",
                        "lines": 11,
                        "flag": "-F"
                    },
                    {
                        "name": "-fast",
                        "lines": 16
                    },
                    {
                        "name": "-fileOrder",
                        "lines": 18
                    },
                    {
                        "name": "-i -ignore",
                        "lines": 8,
                        "flag": "-i"
                    },
                    {
                        "name": "-if",
                        "lines": 65
                    },
                    {
                        "name": "-m -ignoreMinorErrors",
                        "lines": 9,
                        "flag": "-m"
                    },
                    {
                        "name": "-o -out",
                        "lines": 28,
                        "flag": "-o"
                    },
                    {
                        "name": "-overwrite",
                        "lines": 8
                    },
                    {
                        "name": "-overwrite",
                        "lines": 12
                    },
                    {
                        "name": "-P -preserve",
                        "lines": 8,
                        "flag": "-P"
                    },
                    {
                        "name": "-password",
                        "lines": 4
                    },
                    {
                        "name": "-progress",
                        "lines": 15
                    },
                    {
                        "name": "-q -quiet",
                        "lines": 5,
                        "flag": "-q"
                    },
                    {
                        "name": "-r -recurse",
                        "lines": 7,
                        "flag": "-r"
                    },
                    {
                        "name": "-scanForXMP",
                        "lines": 4
                    },
                    {
                        "name": "-u -unknown",
                        "lines": 6,
                        "flag": "-u"
                    },
                    {
                        "name": "-U -unknown2",
                        "lines": 3,
                        "flag": "-U"
                    },
                    {
                        "name": "-wm -writeMode",
                        "lines": 13
                    },
                    {
                        "name": "-z -zip",
                        "lines": 31,
                        "flag": "-z"
                    },
                    {
                        "name": "-k -pause",
                        "lines": 4,
                        "flag": "-k"
                    },
                    {
                        "name": "-list -listw -listf -listr -listwf -listg -listd -listx",
                        "lines": 34
                    },
                    {
                        "name": "-ver -v",
                        "lines": 8,
                        "flag": "-v"
                    },
                    {
                        "name": "-geotag",
                        "lines": 45
                    },
                    {
                        "name": "-globalTimeShift",
                        "lines": 13
                    },
                    {
                        "name": "-use",
                        "lines": 9
                    },
                    {
                        "name": "-restore",
                        "lines": 1
                    },
                    {
                        "name": "-delete",
                        "lines": 26
                    },
                    {
                        "name": "-api",
                        "lines": 5
                    },
                    {
                        "name": "-common",
                        "lines": 5
                    },
                    {
                        "name": "-config",
                        "lines": 8
                    },
                    {
                        "name": "-echo",
                        "lines": 6
                    },
                    {
                        "name": "-efile",
                        "lines": 7
                    },
                    {
                        "name": "-execute",
                        "lines": 8
                    },
                    {
                        "name": "-list",
                        "lines": 11
                    },
                    {
                        "name": "-srcfile",
                        "lines": 23
                    },
                    {
                        "name": "-stay",
                        "lines": 45
                    },
                    {
                        "name": "-userParam",
                        "lines": 76
                    }
                ]
            },
            {
                "name": "WINDOWS UNICODE FILE NAMES",
                "lines": 23,
                "subsections": [
                    {
                        "name": "-geotag -o -p -srcfile -tagsFromFile -csv -j -",
                        "lines": 16,
                        "flag": "-j"
                    }
                ]
            },
            {
                "name": "WRITING READ-ONLY FILES",
                "lines": 18,
                "subsections": []
            },
            {
                "name": "READING EXAMPLES",
                "lines": 81,
                "subsections": []
            },
            {
                "name": "WRITING EXAMPLES",
                "lines": 106,
                "subsections": []
            },
            {
                "name": "COPYING EXAMPLES",
                "lines": 97,
                "subsections": []
            },
            {
                "name": "RENAMING EXAMPLES",
                "lines": 49,
                "subsections": []
            },
            {
                "name": "GEOTAGGING EXAMPLES",
                "lines": 50,
                "subsections": []
            },
            {
                "name": "PIPING EXAMPLES",
                "lines": 19,
                "subsections": []
            },
            {
                "name": "INTERRUPTING EXIFTOOL",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "EXIT STATUS",
                "lines": 3,
                "subsections": []
            },
            {
                "name": "AUTHOR",
                "lines": 5,
                "subsections": []
            },
            {
                "name": "SEE ALSO",
                "lines": 6,
                "subsections": []
            }
        ]
    }
}