Modify jpeg EXIF picture data: Difference between revisions

From WickyWiki
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 23: Line 23:
</syntaxhighlight>
</syntaxhighlight>


Rename files to YYYYMMDD-HHMMSS-originalName.jpg, using 'picture taken' time:
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%S-%f *.jpg
jhead -n%Y%m%d-%H%M-%f *.jpg
</syntaxhighlight>
</syntaxhighlight>


Line 35: Line 35:
</syntaxhighlight>
</syntaxhighlight>


Sets the Exif timestamp to the file's timestamp:
Sets the Exif timestamp to the file's timestamp, if needed, create exif header first:
 
<syntaxhighlight lang=bash>
jhead -dsft *.jpg
</syntaxhighlight>
 
Create / replace exif header:


<syntaxhighlight lang=bash>
<syntaxhighlight lang=bash>
jhead -mkexif *.jpg
jhead -mkexif *.jpg
jhead -dsft *.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