Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
3
Help us understand the problem. What is going on with this article?
@nekogesaku

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

More than 3 years have 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

3
Help us understand the problem. What is going on with this article?
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
nekogesaku
テクニカルライターです。アプリ開発、IT翻訳もやってます。

Comments

No comments
Sign up for free and join this conversation.
Sign Up
If you already have a Qiita account Login
3
Help us understand the problem. What is going on with this article?