-
metadata-extractor-2.4.0.rar 获取图片 exif 信息下载
资源介绍
metadata-extractor-2.4.0.rar
metadata-extractor-2.4.0.rar 获取 图片 exif 信息
使用方法:
File jpegFile = new File("c:\\newchangetime.jpg");
Metadata metadata = JpegMetadataReader.readMetadata(jpegFile);
Directory exif = metadata.getDirectory(ExifDirectory.class);
Iterator tags = exif.getTagIterator();
// print color space
//print all exif metadata
while (tags.hasNext()) {
Tag tag = (Tag)tags.next();
System.out.println(tag.getTagType() + "====>" +tag);
}