《Disney +》 迪士尼、Marvel、彼思、星球大戰…  《Chicory:A Colorful Tale》中悅耳的音景   獲取大會限定角色顏色包!「碧藍幻想VS」官方線上大會「GBVS Cygames Cup 2021 Winter」比賽接受登記!   與PlayStation 一同慶祝你的2020年遊玩紀錄回顧   《Cuphead》的《The Delicious Last Course》DLC將於2022年6月30日登陸PS4   彩虹社新VTuber偶像男組合ROF-MAO發表!會推出合作新節目!   PlayStation® Partner Awards 2021日本及亞洲地區得獎者名單將自12月2日起接連兩天公布!   「Nintendo Switch MONSTER HUNTER RISE 特別版」登場!並且推出同款設計Pro控制器!   【開箱】買了Transcend的NAS StoreJet Cloud 210N! 

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