2014-04-12 18:25:30 +01:00
|
|
|
# exiftool
|
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
> Read and write meta information in files.
|
2020-10-12 14:02:33 +01:00
|
|
|
> More information: <https://exiftool.org>.
|
2014-04-12 18:25:30 +01:00
|
|
|
|
2022-10-26 11:47:02 +01:00
|
|
|
- Print the EXIF metadata for a given file:
|
|
|
|
|
2022-12-04 09:12:49 +00:00
|
|
|
`exiftool {{path/to/file}}`
|
2022-10-26 11:47:02 +01:00
|
|
|
|
2016-01-07 17:31:27 +00:00
|
|
|
- Remove all EXIF metadata from the given files:
|
2014-04-12 18:25:30 +01:00
|
|
|
|
2022-12-06 06:47:56 +00:00
|
|
|
`exiftool -All= {{path/to/file1 path/to/file2 ...}}`
|
2015-08-15 16:04:31 +01:00
|
|
|
|
2022-11-20 10:09:37 +00:00
|
|
|
- Remove GPS EXIF metadata from given image files:
|
|
|
|
|
|
|
|
`exiftool "-gps*=" {{path/to/image1 path/to/image2 ...}}`
|
|
|
|
|
2022-10-26 11:47:02 +01:00
|
|
|
- Remove all EXIF metadata from the given image files, then re-add metadata for color and orientation:
|
|
|
|
|
2023-05-19 18:48:48 +01:00
|
|
|
`exiftool -All= -tagsfromfile @ -colorspacetags -orientation {{path/to/image1 path/to/image2 ...}}`
|
2022-10-26 11:47:02 +01:00
|
|
|
|
2019-10-06 16:18:58 +01:00
|
|
|
- Move the date at which all photos in a directory were taken 1 hour forward:
|
2015-08-15 16:04:31 +01:00
|
|
|
|
2019-10-06 16:18:58 +01:00
|
|
|
`exiftool "-AllDates+=0:0:0 1:0:0" {{path/to/directory}}`
|
2015-08-15 16:04:31 +01:00
|
|
|
|
2019-10-06 16:18:58 +01:00
|
|
|
- Move the date at which all JPEG photos in the current directory were taken 1 day and 2 hours backward:
|
2015-08-19 22:37:44 +01:00
|
|
|
|
|
|
|
`exiftool "-AllDates-=0:0:1 2:0:0" -ext jpg`
|
|
|
|
|
2019-10-06 16:18:58 +01:00
|
|
|
- Only change the `DateTimeOriginal` field subtracting 1.5 hours, without keeping backups:
|
2015-08-19 22:37:44 +01:00
|
|
|
|
|
|
|
`exiftool -DateTimeOriginal-=1.5 -overwrite_original`
|
|
|
|
|
2019-10-06 16:18:58 +01:00
|
|
|
- Recursively rename all JPEG photos in a directory based on the `DateTimeOriginal` field:
|
2015-08-19 22:37:44 +01:00
|
|
|
|
2019-10-06 16:18:58 +01:00
|
|
|
`exiftool '-filename<DateTimeOriginal' -d %Y-%m-%d_%H-%M-%S%%lc.%%e {{path/to/directory}} -r -ext jpg`
|