Status: New
Owner: ----
Labels: Type-Defect Priority-Medium
New issue 41 by pergola....@gmail.com: error jpg exif
http://code.google.com/p/metadata-extractor/issues/detail?id=41
I am using the latest extractor on your website. 2.5.0 RC3.
Jpg file exception:
When I try to get the date of release of this photo I get an exception that
I can not manage, the program crashes anyone has any idea?
The development environment is the NetBeans 7.1.1, jdk version 1.6
s.o. windows 7 32 bit and windows xp 32 bit
The method I used is as follows:
public static String LeggiMetaDataDataScatto (java.lang.String Path) {
String result = "";
JpegFile file = new File (Path);
try {
Metadata metadata = ImageMetadataReader.readMetadata
(jpegFile);
for (Directory directory: metadata.getDirectories ()) {
for (Tag tag: directory.getTags ()) {
String info = tag.toString ();
System.out.println (info);
if (Info.contains ("Date / Time Digitized")) {
Result = info;
}
}
}
System.out.println (metadata);
} Catch (Exception e) {
}
}
I get this error:
Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: com
/ adobe / xmp / XMPException
com.drew.imaging.jpeg.JpegMetadataReader.extractMetadataFromJpegSegmentRead er
at
(Unknown Source)
com.drew.imaging.jpeg.JpegMetadataReader.readMetadata at (Unknown Source)
com.drew.imaging.ImageMetadataReader.readMetadata at (Unknown Source)
com.drew.imaging.ImageMetadataReader.readMetadata at (Unknown Source)
Please provide any additional information below.
Attachments:
adobeJpeg1.jpg 42.8 KB