Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

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

nekogesaku
テクニカルライターです。アプリ開発、IT翻訳もやってます。
https://kurushimimogakusora.blogspot.jp/
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした