jhead

jheadコマンドの利用メモ


exif参照

jhead *****.jpg

exif消去 -purejpg

jhead -purejpg *****.jpg

exif消去(撮影日時残し) -mkexif

jhead -mkexif *.jpg

exif新規作成(minimal) -mkexif

jhead -mkexif *****.jpg

exif時刻設定(Time Set) -ts yyyy:mm:dd-hh:mm:ss
exif日付設定(Day Set) -ds yyyy:mm:dd, yyyy:mm, yyyy:mm

jhead -ts2013:05:05-12:30:35 *****.jpg

exif修正(+ or -) [時刻] -ta (Time Adjust)
exif修正(new-old) /で時刻も追加修正可能 [日付] -da (Day Adjust)

jhead -ta+9:00 *****.jpg
jhead -da2011:05:01-1011:01:01 *****.jpg

exif情報によるrename (-n)

jhead -n%Y%m%d_%H%M%S *****.JPG
%H Hour in 24-hour format (00 - 23)
%j Day of year as decimal number (001 - 366)
%m Month as decimal number (01 - 12)
%M Minute as decimal number (00 - 59)
%S Second as decimal number (00 - 59)
%w Weekday as decimal number (0 - 6; Sunday is 0)
%y Year without century, as decimal number (00 - 99)
%Y Year with century, as decimal number