读取图片元数据的Java类库:metadata-extractor
jopen
10年前
metadata-extractor是一个能够从图像文件中读取元数据(Exif, IPTC, XMP, ICC等)的简单的Java库。
Metadata metadata = ImageMetadataReader.readMetadata(imagePath);
该库能了解多种格式的元数据,其中许多可以存在于单个图像:
- Exif
- IPTC
- XMP
- JFIF / JFXX
- ICC Profiles
- Photoshop fields
- PNG properties
- BMP properties
- GIF properties
它能处理类型的文件:
- JPEG
- TIFF
- PSD
- PNG
- BMP
- GIF
- Camera Raw (NEF/CR2/ORF/ARW/RW2/...)
Special camera-specific data is decoded for most cameras manufactured by:
- Agfa
- Canon
- Casio
- Epson
- Fujifilm
- Kodak
- Kyocera
- Leica
- Minolta
- Nikon
- Olympus
- Panasonic
- Pentax
- Sanyo
- Sigma/Foveon
- Sony