-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hi,
The JOSM project has found a regression when parsing the metadata of an image
containing a GPSImgDirection tag. The tag was properly parsed with
metadata-extractor 2.3 but no longer with 2.6.4. This issue has been fixed with
the following patch:
http://josm.openstreetmap.de/changeset/6209/josm/trunk/src/com/drew/metadata/exi
f/ExifReader.java
This partially reverts a change introduced on 2001-05-01 in the commit 7bd15c8:
https://code.google.com/p/metadata-extractor/source/diff?spec=svn7bd15c8&old=052
cbf1&r=7bd15c8&format=unidiff&path=%2FSource%2Fcom%2Fdrew%2Fmetadata%2Fexif%2FEx
ifReader.java
I'm attaching an image exposing this issue, and here is the code to reproduce
it:
File file = new File("exif-direction-example.jpg");
Metadata metadata = JpegMetadataReader.readMetadata(file);
GpsDirectory dir = metadata.getDirectory(GpsDirectory.class); // null with 2.6.4
Rational direction = dir.getRational(GpsDirectory.TAG_GPS_IMG_DIRECTION);
System.out.println(direction); // should print "4650/100"
Original issue reported on code.google.com by [email protected] on 27 Jun 2014 at 3:17
Attachments: