LoginSignup
4
3

More than 5 years have passed since last update.

メモ:exiftoolで画像のEXIF情報を変更する

Posted at

MacやWindows、Linuxなどで利用可能なExiftool。
すでに色々なところで情報はありますが、自分の備忘録代わりのメモ書きです。
(しばらく放置してたWSLをやっとこさ動かした記念に)

「photo.jpg」を、DateTimeOriginal、CreateDateともに「2015/2/7 12時32分16秒」にする場合

exiftool -DateTimeOriginal="2015:02:07 12:32:16" -CreateDate="2015:02:07 12:32:16" -FileModifyDate="2015:02:07 12:32:16" photo.jpg
exiftool -AllDates="2015:03:07 08:44:04" photo.jpg

  • FileAccessDateとFileInodeChangeDateは変更できない。

フォルダ中のJPGファイルの、三つの日付のEXIF情報を、テキストファイルに書き出す

exiftool -DateTimeOriginal -CreateDate -FileModifyDate *.JPG > ExifDateList.txt
exiftool -AllDates *.JPG > datelist.txt
exiftool -AllDates *.jpg > datelist.txt
exiftool -AllDates *.jpg *.JPG *.jpeg *.JPEG > datelist.txt

exiftool -AllDates -ExifImageWidth -ExifImageHeight -ImageWidth -ImageHeight -ImageSize *.jpg *.JPG *.jpeg *.JPEG > exifinfo.txt
exiftool -AllDates -ExifImageWidth -ExifImageHeight -Make -Model -Software -ImageWidth -ImageHeight -ImageSize *.jpg *.JPG *.jpeg *.JPEG > exifinfo.txt

ファイル名を日付にする

exiftool "-filename<createdate" -d %Y-%m-%d_%H-%M-%S%%-c.%%e *.jpg *.JPG
exiftool "-filename<DateTimeOriginal" -d %Y-%m-%d_%H-%M-%S%%-c.%%e *.jpg *.JPG

4
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
3