Questions tagged [metadata-extractor]

A Java/.NET library for extracting Exif, IPTC, XMP, ICC and other metadata from image and movie files.

metadata-extractor is a library for both Java & .NET that extracts various types of metadata from several common image and image and video file formats.

The project has been running since 2002 and is still under active development.

90 questions
5
votes
1 answer

Adding Metadata-extractor library in Android Studio

I am trying to add metadata-extractor-2.8.1.jar in my android studio project. But every time i hit "Add As Library" jar file doesn't add. Only Logs a Null pointer exception. Below is the exception message: java.lang.NullPointerException at…
Obaida.Opu
  • 444
  • 1
  • 4
  • 18
4
votes
2 answers

Easy API for retrieving width and height when using metadata-extractor

I am using the excellent metadata-extractor library. It is very good for retrieving detailed metadata from many different image formats. However, for a project i am only interested in extracting "common image metadata" (like width and height). In…
rmuller
  • 12,062
  • 4
  • 64
  • 92
3
votes
1 answer

How to Use Metadata-extractor to Determine File Type

I'm using metadata-extractor to extract the meta data from image files and this is working great. What I'd like to know is if there is a way that the metadata-extractor library can tell me the type of file I'm processing. I have some files that…
mbmast
  • 960
  • 11
  • 25
3
votes
1 answer

How to read XMP face data from JPEG in Java

I have saved Picasa's face data inside my JPEG files (in XMP) and now I am trying to read that information in Java. So far I am failing and help would be much appreciated. I am trying to use metadata-extractor library (though any other solution…
texnic
  • 3,959
  • 4
  • 42
  • 75
3
votes
1 answer

Metadata Extraction - Java

I'm trying to create a program that extracts the metadata from an image file. So far, I've managed to create a program that prints out all the metadata, but I can't figure out how to specify the program to print out only certain things (File name,…
user1311422
  • 85
  • 2
  • 2
  • 7
2
votes
2 answers

Problem obtaining Orientation using MetadataExtractor GetDescription

Objective I want to "correct" the orientation of an image. My plan is to extract the orientation from the Exif data stored with the image and use that to inform a re-orientation of the image. Problem It's probably me, but for this particular Exif…
Mashed Spud
  • 452
  • 4
  • 12
2
votes
1 answer

ImageMetadataReader.readMetadata(file) is missing data

I have a single tiff file with multiple images inside. I want to extract the Image Description value for each of the images. I'm not sure why, but when I use ImageMetaDataReader, it's only returning the first and last Image Description. I have…
user11660323
2
votes
3 answers

Android: Samsung devices rotates the image automatically

I have created a custom camera. When I click on the capture button in the application, image has been taken. Moreover, I am getting the data in the form of byte array in the function named as onPictureTaken. I am converting the byte array into the…
mimetype
  • 31
  • 3
2
votes
0 answers

Metadata-Extractor orientation gyroscope

I would like to extract the following metadata (user name, date, time, orientation and gyroscope) from photos taken indoors with a smartphone camera. Can Metadata Extractor extract the gyroscope values for each photo from the EXIF file? The value of…
gallagrp
  • 33
  • 4
2
votes
1 answer

XMP data written from commons io imaging not readable by metadata-extractor

I am using commons io imaging library to add xmp metadata to a JPEG file. This is how I'm doing it: String xmpXml = "some sample desc123"; JpegXmpRewriter rewriter = new JpegXmpRewriter(); …
Omnipresent
  • 29,434
  • 47
  • 142
  • 186
2
votes
1 answer

Getting custom XMP metadata using metadata-extractor in c#

I am writing some XMP metadata using a photoshop .jsx script using : var xmp = new XMPMeta( activeDocument.xmpMetadata.rawData); XMPMeta.registerNamespace(nameSpace, nsPrefix); and then adding some data to this new namespace. I am able to view it…
AkVenu
  • 25
  • 5
2
votes
1 answer

Unable to retrieve full text of title from JPEG metadata

This is closely related to Extract IPTC-Keywords Longer than 64 Chars in Java . Please see my comments there. The problem is that a title added to a JPEG file in Adobe Bridge as "Document Title" in the description tab (also shown as "Title" in the…
2
votes
1 answer

getThumbnailData() in metadata-extractor returning null for a CR2 file

I am using the java version 2.8.1 of metadata-extractor to read a CR2 file. According to the dump of tags there is a Exif Thumbnail directory and it claims there is a thumbnail offset and length. However, when I call getThumbnailData() on the…
Rick Noel
  • 21
  • 2
2
votes
1 answer

Java Metadata Extractor causes java.lang.NoClassDefFoundError

I'm trying to use this library for Images Metadata Extraction in Java https://github.com/drewnoakes/metadata-extractor , using NetBeans. I imported the file metadata-extractor-2.7.0.jar into the jar folder of the project, and like the readme says, I…
Ozeta
  • 321
  • 4
  • 18
2
votes
4 answers

Extracting IPTC/EXIF data from tif files in using Java

The system I'm working on has a feature to extract metadata from JPEG files using the com.drew.metadata package. http://www.drewnoakes.com/code/exif/ However that is limited to JPEG files, and now a customer has asked about extracting IPTC from TIF,…
Sindri Traustason
  • 5,445
  • 6
  • 48
  • 66
1
2 3 4 5 6