Modify jpeg EXIF picture data: Difference between revisions
From WickyWiki
mNo edit summary |
mNo edit summary |
||
| Line 23: | Line 23: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Rename files to YYYYMMDD- | Rename files "file.jpg" to "YYYYMMDD-HHMM-file.jpg", using 'picture taken' time: | ||
<syntaxhighlight lang=bash> | <syntaxhighlight lang=bash> | ||
jhead -n%Y%m%d-%H%M | jhead -n%Y%m%d-%H%M-%f *.jpg | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Latest revision as of 18:09, 24 February 2015
Install jhead
sudo apt-get install jhead
Usage jhead
Adjust 'picture taken' time one hour forward, for example when you forgot to set daylight savings time for your camera:
jhead -ta+1:00 *.jpg
Adjust 'picture taken' time back by 23 seconds, for example to get the timestamps of two camera's in sync:
jhead -ta-0:00:23 *.jpg
Rename files "file.jpg" to "YYYYMMDD-HHMM-file.jpg", using 'picture taken' time:
jhead -n%Y%m%d-%H%M-%f *.jpg
Sets the file's timestamp (modified date) to what is stored in the Exif header:
jhead -ft *.jpg
Sets the Exif timestamp to the file's timestamp, if needed, create exif header first:
jhead -dsft *.jpg
Create / replace exif header:
jhead -mkexif *.jpg