Follow
Java PDF Blog
  • Click to learn more about PDF files
Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.

How to read EXIF metadata from Image files

November 30, 2021 40 sec read

Reading EXIF metadata from Image files

In our previous article we looked at some Viewers which could display Exif data for you. Sometimes, you need to programmatically access the data. So we finish our series of articles with some suggestions to try. There is a good selection of free and commercial tools for reading EXIF data from Image files, depending on the language you are writing your code in. Not all tools support all image formats (especially Heic). Here is a selection of 5 Open Source or Commercial tools which you may find useful as a starting point. Please feel to add your own suggestions.

  • libheif is an Open Source library for accessing image data. While this is written in C, there are a number of wrappers for other languages including Python. There is a really good tutorial for this on Youtube.
  • exiv2 is a an Open Source C++ library for reading Exif data.
  • ExifTool is an Open Source Perl library for reading Exif data from multiple file types.
  • Leadtools is a commercial toolkit for Images.
  • JDeli is our own commercial  image library. JDeli allows you to extract Heic Image metadata in two lines of Java code.


Start reading and writing images with one line of code

Read: BufferedImage image = JDeli.read(streamOrFile);

Write: JDeli.write(myBufferedImage, OutputFormat.HEIC, outputStreamOrFile)

Learn more >>

Mark Stephens Mark has been working with Java and PDF since 1999 and is a big NetBeans fan. He enjoys speaking at conferences. He has an MA in Medieval History and a passion for reading.
  • Images
  • JDeli
« 4 tools for viewing Image Metadata
Virtual Christmas – games for your party »

What is Image Interlacing?

Amy Pearson
Apr 12, 2023 1 min read

Apache Tika Support in JDeli

Jacob Collins
Mar 8, 2023 44 sec read

How to crop an image in Java

Mark Stephens
Feb 8, 2023 38 sec read

IDRsolutions Ltd 2023. All rights reserved.