To register additional XMP namespaces, combine the command with:
.nf
\fBreg\fP\fIprefix\fP\fInamespace\fP
.br
.SSExifDateTime
.fi
An Exif DateTime string is stored as 20 ascii bytes (including trailing nul) in the format:
.sp1
YYYY:MM:DD HH:MM:SS
.sp1
The exiv2 command-line program options -t and -T will accept files
in which the Date has been incorrectly stored as YYYY-MM-DD.
The option -a enables the user to adjust the DateTime in the file and applies
the YYYY:MM:DD HH:MM:SS standard.
.ne4
.fi
.SSCommandfileformat
Empty lines and lines starting with \fB#\fP in a command file are
ignored (comments). Remaining lines are commands as described above.
.br
.ne40
.SHEXIFTAGNAMESANDVALUES
Exiv2 displays metadata tags and values.
@ -692,6 +673,19 @@ Type Explanation
.fi
.sp
The printing flag t = translated and is intended for human use. Scripts should never use translated values as they are localised and the format may change as Exiv2 evolves. The printing flag v reports the values recorded in the metadata and should be used by scripts.
.ne8
.fi
.SHExifDateTime
.fi
An Exif DateTime string is stored as 20 ascii bytes (including trailing nul) in the format:
.sp1
YYYY:MM:DD HH:MM:SS
.sp1
The exiv2 command-line program options -t and -T will accept files
in which the Date has been incorrectly stored as YYYY-MM-DD.
The option -a enables the user to adjust the DateTime in the file and applies
the YYYY:MM:DD HH:MM:SS standard.
.sp1
.ne40
.SHCONFIGURATIONFILE
Exiv2 can read an optional configuration file ~/.exiv2 on Unix systems and %USERPROFILE%\\exiv2.ini on Windows (using a Visual Studio build). Cygwin and MinGW/msys2 follow the unix convention and use ~/.exiv2 You can determine the location of the configuration file with the command:
@ -714,84 +708,101 @@ $ cat ~/.exiv2
.sp1
You obtain the lensID for your camera with the command:
0x000c NikonLd3 LensIDNumber Byte 1 146 <--- This number
0x000d NikonLd3 LensFStops Byte 1 55
.br
.fi
.ne40
.SHEXAMPLES
.TP
exiv2 *.jpg
.nf
$ exiv2 *.jpg
.fi
Prints a summary of the Exif information for all JPEG files in the directory. The summary report is rather brief and presentation does not use the Family.Group.Tag convention.
.sp1
If you use --grep pattern, the default becomes -pa. See -g/grep above.
.sp1
.nf
$ exiv2 -g Date http://clanmills.com/Stonehenge.jpg
.fi
.TP
exiv2 \-pi image.jpg
.nf
$ exiv2 \-pi image.jpg
.fi
Prints the IPTC metadata of the image.
.TP
exiv2 rename img_1234.jpg
.nf
$ exiv2 rename img_1234.jpg
.sp1
.fi
Renames img_1234.jpg (taken on 13\-Nov\-05 at 22:58:31) to 20051113_225831.jpg
Sets the latitude to 4 degrees, 15 minutes and 33 seconds north. The
Exif standard stipulates that the GPSLatitude tag consists of three
Rational numbers for the degrees, minutes and seconds of the latitude
and GPSLatitudeRef contains either 'N' or 'S' for north or south
latitude respectively.
.TP
exiv2 insert \-l/tmp -S.CRW /data/*.JPG
.nf
$ exiv2 insert \-l/tmp -S.CRW /data/*.JPG
.fi
Copy all metadata from CRW files in the /tmp directory to JPG files
with corresponding basenames in the /data directory. Note that this
dwith corresponding basenames in the /data directory. Note that this
copies metadata as is, without any modifications to adapt it to the
requirements of the target format. Some tags copied like this may not
make sense in the target image.
.SHSEEALSO
.TP
.nf
.Ihttps://exiv2.org/sample.html#modify
.fi
Sample command files.
.TP
.nf
.Ihttps://exiv2.org/metadata.html
.fi
Taglists with \fIkey\fP and default \fItype\fP values.
.SHAUTHORS
.Bexiv2
was written by Andreas Huggel and others. The Exiv2 project web site is https://exiv2.org. The code is hosted on GitHub at https://github.com/exiv2/exiv2
.PP
This manual page was originally created for the Debian project by KELEMEN Peter <fuji@debian.org>.
was written by Andreas Huggel and others.
.SHPROJECT
The Exiv2 project web site is https://exiv2.org.
.sp1
The code is hosted on GitHub at https://github.com/exiv2/exiv2