• Edit
  • Delete

Ubuntu set file date/ filename from jpg exif Images Photos

Preparation: Normalize Extension

  • rename s/JPG$/jpg/ *

File Date

  • sudo apt-get install jhead
  • jhead -ft *.jpg

 

Filename

  • sudo apt-get install exiftool
  • exiftool '-filename<CreateDate' -d %Y-%m-%d_%H-%M-%S%%-c.%%le -r -ext jpg .

Filename + Filedate

  • exiftool '-filename<CreateDate' -d %Y-%m-%d_%H-%M-%S%%-c.%%le '-FileModifyDate<DateTimeOriginal' -r -ext jpg .