LinuxCommandLibrary

jhead

utility for displaying and manipulating EXIF metadata in JPEG images

TLDR

Show all EXIF data

$ jhead image.jpg
copy
Set file date to EXIF date
$ jhead -ft image.jpg
copy
Set EXIF date to file date
$ jhead -dsft image.jpg
copy
Rename files based on EXIF date
$ jhead -n%Y_%m_%d-%H_%M_%S *.jpg
copy
Auto-rotate based on EXIF orientation
$ jhead -autorot *.jpg
copy
Adjust EXIF timestamps
$ jhead -ta-1:00:00 *.jpg
copy
Remove all EXIF data
$ jhead -purejpg image.jpg
copy
Delete thumbnail only
$ jhead -dt image.jpg
copy

SYNOPSIS

jhead [options] [file...]

DESCRIPTION

jhead is a utility for displaying and manipulating EXIF metadata in JPEG images from digital cameras. It can adjust timestamps, remove thumbnails, auto-rotate images, and transfer EXIF headers between files.

PARAMETERS

-ft

Set file modification time to EXIF create date
-dsft
Set EXIF timestamp to file modification time
-n FORMAT
Rename files using strftime format based on EXIF date
-autorot
Rotate images losslessly based on EXIF orientation tag
-ta OFFSET
Adjust EXIF time by offset (format: +/-HH:MM:SS)
-da NEWDATE-OLDDATE
Correct large date offsets
-purejpg
Remove all non-essential sections and metadata
-de
Delete entire EXIF header
-dt
Delete thumbnail from EXIF header
-dc
Delete comment field
-te FILE
Transfer EXIF header from another file
-ce
Edit comment field in text editor
-cl STRING
Set comment from command line
-st FILE
Save thumbnail to file
-rgt SIZE
Regenerate thumbnail with specified size
-mkexif
Create minimal EXIF header

CAVEATS

The -autorot option uses jpegtran for lossless rotation. Renaming with -n uses strftime format codes. Changes are made in-place to the original files unless otherwise specified.

HISTORY

jhead was created by Matthias Wandel for manipulating EXIF data in JPEG files from digital cameras.

SEE ALSO

exiftool(1), exiv2(1), jpegtran(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community