jhead – Exif Jpeg header manipulation tool

jhead is an open source command line driven utility for extracting digital camera settings from the Exif format files used by many digital cameras. It handles the various confusing ways these can be expressed, and displays them as F-stop, shutter speed, etc.

This tool is also able to reduce the size of digital camera JPEGs without loss of information, by deleting integral thumbnails that digital cameras put into the Exif header.

Many projects, including PHP, have reused code from this utility.

Features include:

  • Extracting camera settings from Exif image files.
  • Able to set and/or adjust the Exif time field.
  • Manipulation (extract, replace, regenerate) of Exif integral thumbnails.
  • Transplant Exif image header from one JPEG to another.
  • Edit JPEG comment fields.
  • Automatically rotate images upright (using jpegtran) according to “orientation” tag.
  • Manage running programs on large batches of Jpegs and restoring Exif header information afterwards.
  • Display embedded GPS info (if present).
  • Extracts the following from an Exif jpeg file:
    • Time and date picture was taken.
    • Camera make and model.
    • Integral low-res Exif thumbnail.
    • Shutter speed.
    • Camera F-stop number.
    • Flash used (yes/no).
    • Distance camera was focused at.
    • Focal length and calculate 35 mm equivalent focal length.
    • Image resolution.
    • GPS info, if stored in image.
    • IPTC header.
    • XMP data.
  • Modifies the following from an Exif jpeg file:
    • Up-right images according to rotation tag using jpegtran.
    • Set or relative adjust internal exif timestamps.
    • Fix date / time offsets in large batches of images.
    • Rename or date stamp files according to exif timestamp.
    • Transfer exif headers between images.
    • Replace thumbnails inside Exif headers.
    • Edit jpeg comments (but not the Exif comments).
    • Delete exif or comment sections from jpeg images.
    • Create new minimal exif header containing date and thumbnail.
  • Options for manipulating Exif files including the date in the header, renaming image files, or coordinating running Jpegtran and Mogrify to manipulate whole directory trees of images.

Website: www.sentex.net
Support: Documentation
Developer: Matthias Wandel
License: Public Domain

jhead is written in C. Learn C with our recommended free books and free tutorials.

Return to Photo Metadata Editors Home Page | Return to Small Image Tools Home Page


Popular series
Linux for StartersNew to Linux? Read our Linux for Starters series.
Free and Open Source SoftwareThe largest compilation of the best free and open source software in the universe. Supplied with our legendary ratings charts.
Linux ReviewsHundreds of in-depth reviews offering our unbiased and expert opinion on software.
Alternatives to GoogleAlternatives to Google's Products and Services examines your options to migrate from the Google ecosystem with open source Linux alternatives.
MicrosoftAlternatives to Microsoft's Products and Services recommends open source Linux software.
AdobeAlternatives to Adobe Cloud is a new series looking at free and open source alternatives to products available from Adobe Cloud's subscription service.
Linux System ToolsEssential Linux system tools looks at small, indispensable utilities, useful for system administrators as well as regular users.
Linux ProductivityLinux utilities to maximise your productivity. Small, indispensable tools, useful for anyone running a Linux machine.
Home Computer EmulatorsHome computers became commonplace in the 1980s. Emulate home computers including the Commodore 64, Amiga, Atari ST, ZX81, Amstrad CPC, and ZX Spectrum.
Now and ThenNow and Then examines how promising open source software fared over the years.
Linux at HomeLinux at Home looks at a range of home activities where Linux can play its part, making the most of our time at home, keeping active and engaged.
Linux CandyLinux Candy opens up to the lighter side of Linux. Have some fun!
Best Free Android AppsBest Free Android Apps. There's a strict eligibility criteria for inclusion in this series
Programming BooksThese best free books accelerate your learning of every programming language
Programming TutorialsThese free tutorials offer the perfect tonic to the free programming books series
Stars and StripesStars and Stripes is an occasional series looking at the impact of Linux in the USA
Share this article

Share your Thoughts

This site uses Akismet to reduce spam. Learn how your comment data is processed.