《Disney +》 迪士尼、Marvel、彼思、星球大戰…  《虹彩六號:圍攻行動》最新賽季「腥紅劫案」即日推出   《Sackboy: A Big Adventure》主題音樂大串聯   【悲報】KOF少女遊戲「THE KING OF FIGHTERS for GIRLS」即將終止服務   懷舊磁碟卡搖身一變成為卡片套!「FC磁碟機造型卡套系列」發售!   經營遊戲直播的「Mildom」與「TOPANGA」簽訂直播合同   PlayStation.Blog偕同一眾好友獻上季節祝賀   介紹PlayStation的新一代VR   《巴蘭的異想奇境》體驗版於1/28開放下載! 可獲得遊玩特典──能在正式版使用的隱藏服裝! 

Linux 使用 jhead 查看 JPEG 照片的 EXIF

JPEG 的照片想要查看 HEADER (EXIF) 的資訊,或者要修改 EXIF 的內容,要怎麼做呢?

Linux 使用 jhead 查看 JPEG 照片的 EXIF 資訊

Linux 有 jhead 可以作到查看、修改 EXIF 等資訊的功能

  • 官網:Exif Jpeg header manipulation tool
  • 安裝:apt install jhead
  • 操作:jhead example.jpg
    File name : example.jpg
    File size : 1494200 bytes
    File date : 2013:05:18 21:01:59
    Camera make : Canon
    Camera model : Canon EOS Kiss Digital N
    Date/Time : 2008:06:21 12:56:09 
    Resolution : 3456 x 2304 
    Orientation : rotate 270
    Flash used : No 
    Focal length : 24.0mm (35mm equivalent: 39mm)
    CCD width : 22.20mm
    Exposure time: 0.0025 s (1/400)
    Aperture : f/8.0
    ISO equiv. : 400
    Whitebalance : Auto
    Metering Mode: pattern
    JPEG Quality : 90

想要調整 EXIF 的修改時間,可以使用 -ta,如下範例:

  • Add 1 hourand 5 minutes to the time
    • jhead -ta+1:05
  • Decrease time by one second:
    • jhead -ta-0:0:1
  • 註:-ta: This option changes all Date/time fields in the exif header, including "DateTimeOriginal" (tag 0x9003) and "DateTimeDigitized" (tag 0x9004)

將 修改時間 對應到 EXIF 的 拍攝時間,使用 -ft

  • jhead -ft example.jpg
  • 註:-ft: Sets the file's system time stamp to what is stored in the Exif header.
TechNow 當代科技

隨機新聞

Addidas