Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6345787
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:53:26+00:00 2026-05-24T20:53:26+00:00

I am interesting in parsing the exiftool result with a java api or something

  • 0

I am interesting in parsing the exiftool result with a java api or something like that.

I have been researching, but I didn’t find any example. For example, how could I get these results in my java project?

ExifTool Version Number : 8.22

File Name :
ExifTool.jpg

Directory : t/images File

Size : 24 kB File Modification Date/Time

Etc.. I am looking for a ‘how to’ or something like that.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T20:53:28+00:00Added an answer on May 24, 2026 at 8:53 pm

    ExifTool (for Java) is designed to be a simple-to-use and robust Java abstraction of Phil Harvey’s ExifTool. I just made the first public release this past week after incubating the project under the imgscalr project umbrella for a while.

    The project is under the commercial-friendly Apache 2 license.

    My goal for the library isn’t just to abstract out the external process execution code from the caller (like most of the other abstraction layers are seeming to do) but to actually design a wrapper so tightly integration and resilient (I will clarify what I mean here later), that you treat instances of your ExifTool class exactly as you would if ExifTool itself was written in Java.

    In this initial release I support reading tag data (will add writing in a future release) and it is as simple as this:

    File image = // path to some image
    ExifTool tool = new ExifTool();
    
    Map<Tag, String> valueMap =
        tool.getImageMeta(image, Tag.GPS_LATITUDE, Tag.GPS_LONGITUDE);
    
    System.out.println("Lat: " + valueMap.get(Tag.GPS_LATITUDE) +
        "\tLong: " + valueMap.get(Tag.GPS_LONGITUDE));
    

    Using ExifTool in the new “daemon mode” (-stay_open True cmd line) is also supported and turning on support for it is as easy as creating your ExifTool instance like so:

    ExifTool tool = new ExifTool(Feature.STAY_OPEN);
    

    The documentation on how to use the ExifTool class is extensive, covering everything from design to performance to thread safety.

    In addition to making use of ExifTool simple from Java, the class employs a considerable amount of precautions to minimize runtime issues as well as correctly catching and reporting any and all errors that can arise in well-documented ways (instead of letting surprise exceptions bubble up from core Java classes).

    I was so pedantic with this exception handling and error recovery because the class is designed to allow you to utilize ExifTool in a high-availability environment like a busy web application. I didn’t just want to wrap simple Process objects then throw my hands up in the air if something exploded. I knew myself (and anyone else using the class) would need a well designed API to allow for easy error recovery.

    For example, attempting to use ExifTool in daemon mode will cause the class to actually check the underlying install of ExifTool for support for that feature and throw an UnsupportedFeatureException with recommendations on how to work around the problem if it isn’t supported.

    In addition to the pre-condition checking, to ensure that usage of the class (namely in daemon mode) doesn’t leak native OS processes as well as Input/OutputStreams used to communicate with them, the class provides an auto-cleanup thread that after a specified interval of inactivity (default is 10 mins) will shut down the external process cleanly and the read/write streams, making the idle instance of ExifTool lightweight and easy to keep around for re-use.

    All the resources are re-initialized on the next call to the class to parse more metadata so there is no need to throw out and re-create new instances. Also the cleanup thread only executes after extended periods of inactivity, not on a set schedule. You can set the interval to anything you want or shut off the cleanup thread completely and manage cleanup yourself (just call close()).

    These designs are all part of my ultimate goal of making ExifTool integration into a Java application seamless, performant and easy.

    You can check out the main project page for more info on the project, usage, source, download links, etc. or you can jump right to GitHub and look through the code if you prefer.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Interesting one here. I have an ASP.NET 1.1 project that contains a web service
Interesting happened to me... I have a grid with rows of data, but the
An interesting question arose today. Let's say I have a .NET object that implements
In my C# project, I have been dealt with the task of parsing an
I have a several tables nested within a table that I am parsing using
I have a interesting problem in Java, its a little wordy though so bear
Interesting combination of problems with the Googles Maps API when parsing the markers with
I have an issue with parsing a date during a unit test run, but
I'd like to write a parser for hashtags. I have been reading the blog
I'd like to give my Java sources to another Java developer so that he

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.