用 exiftool 批次寫入或移除照片的中繼資料 (EXIF,IPTC,XMP)

移除照片中的中繼資料

Batch write or remove meta data from photos with exiftool.

雖然 XnView 轉檔的過程中,我們可以在輸出設定取消勾選保留 EXIF IPTC 與 XMP 等選項讓影像輸出後移除中繼資料。但只是想移除 EXIF 資料,卻得打開 XnView > 批次轉檔 > 輸出設定中勾選一堆選項實在有些麻煩。

有沒有更方便的方式能讓我們移除照片中的 EXIF 等中繼資料呢?以下糊塗流浪貓將示範以 exiftool 來進行這項任務。

 

 

安裝 exiftool

Linux 使用者於軟體管理員搜尋並安裝 exiftool 即可,Windows 使用者請到 exiftool.org 下載執行檔。翠禁評

 

 

用 exiftool 清除 EXIF, IPTC 與 XMP 中繼資料


exiftool *.jpg    #  檢視照片資料

exiftool -all= *.jpg  #  清除影像中所有 meta 資料

exiftool -recurse -all= *.jpg  # 遞迴子目錄清除

exiftool -EXIF= *.jpg #  清除影像 EXIF 資料

 

 

用 exiftool 批次寫入資料


-DateTimeOriginal='yyyy:mm:dd hh:mm:ss'   # 原始日期

-CreateDate='yyyy:mm:dd hh:mm:ss'   # 建立日期

-ModifyDate='yyyy:mm:dd hh:mm:ss'   # 修改日期

-alldates='yyyy:mm:dd hh:mm:ss'  # 所有日期設為相同

-ownername=YourName  # 修改擁有者

-overwrite_original  # 避免產生備份

 

 

 

延伸閱讀

XnView - 替代格式工廠 - 免費批次轉檔、裁剪、浮水印影像處理工具

ImageMagick - 免費好用的影像批次轉檔與裁切軟體 (Linux)

用批次檔(bat)移動、刪除資料夾特定檔案

更多 Office 戰技

 

留言

這個網誌中的熱門文章

寶鐘瑪琳中之人前世照片、年齡分析