tldr/pages/common/exiftool.md

25 lines
821 B
Markdown
Raw Permalink Normal View History

2014-04-12 18:25:30 +01:00
# exiftool
> Read and write meta information in files.
> More information: <https://exiftool.org>.
2014-04-12 18:25:30 +01:00
- Remove all EXIF metadata from the given files:
2014-04-12 18:25:30 +01:00
`exiftool -All= {{file1 file2 ...}}`
2015-08-15 16:04:31 +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
`exiftool "-AllDates+=0:0:0 1:0:0" {{path/to/directory}}`
2015-08-15 16:04:31 +01:00
- Move the date at which all JPEG photos in the current directory were taken 1 day and 2 hours backward:
`exiftool "-AllDates-=0:0:1 2:0:0" -ext jpg`
- Only change the `DateTimeOriginal` field subtracting 1.5 hours, without keeping backups:
`exiftool -DateTimeOriginal-=1.5 -overwrite_original`
- Recursively rename all JPEG photos in a directory based on the `DateTimeOriginal` field:
`exiftool '-filename<DateTimeOriginal' -d %Y-%m-%d_%H-%M-%S%%lc.%%e {{path/to/directory}} -r -ext jpg`