snippetbashTip
jhead — Image timestamp and EXIF data manipulation. More information: <https://www.sentex.net/~mwandel/jhead
Viewed 0 times
timestampcommandandjheadcliimageexifdata
linux
Problem
How to use the
jhead command: Image timestamp and EXIF data manipulation. More information: <https://www.sentex.net/~mwandel/jhead/usage.html>.Solution
jhead — Image timestamp and EXIF data manipulation. More information: <https://www.sentex.net/~mwandel/jhead/usage.html>.Show all EXIF data:
jhead {{path/to/image.jpg}}Set the file's date and time to the EXIF create date (file creation date will be changed):
jhead -ft {{path/to/image.jpg}}Set the EXIF time to the file's date and time (EXIF data will be changed):
jhead -dsft {{path/to/image.jpg}}Rename all JPEG files based on the EXIF create date to
YYYY_MM_DD-HH_MM_SS.jpg:jhead -n%Y_%m_%d-%H_%M_%S *.jpgRotate losslessly all JPEG images by 90, 180, or 270 degrees based on the EXIF orientation tag:
jhead -autorot *.jpgUpdate all EXIF timestamps (Format: +- hour:minute:seconds) (example: forgot to change the camera's time zone - removing 1 hour from timestamps):
jhead -ta-1:00:00 *.jpgRemove all EXIF data (including thumbnails):
jhead -purejpg {{path/to/image.jpg}}Code Snippets
Show all EXIF data
jhead {{path/to/image.jpg}}Set the file's date and time to the EXIF create date (file creation date will be changed)
jhead -ft {{path/to/image.jpg}}Set the EXIF time to the file's date and time (EXIF data will be changed)
jhead -dsft {{path/to/image.jpg}}Rename all JPEG files based on the EXIF create date to `YYYY_MM_DD-HH_MM_SS.jpg`
jhead -n%Y_%m_%d-%H_%M_%S *.jpgRotate losslessly all JPEG images by 90, 180, or 270 degrees based on the EXIF orientation tag
jhead -autorot *.jpgContext
tldr-pages: linux/jhead
Revisions (0)
No revisions yet.