Interface Metadata
- All Known Implementing Classes:
EmptyMetadata
,ImageIOMetadata
,MutableMetadata
public interface Metadata
Physical embedded image metadata.
For image files with multiple embedded subimages, an instance applies only to a single subimage, i.e. each subimage will have its own instance.
- See Also:
-
Method Details
-
getEXIF
-
getIPTC
-
getNativeMetadata
Optional<NativeMetadata> getNativeMetadata()- Returns:
- Format-native metadata.
-
getOrientation
Orientation getOrientation()Reads the orientation from the
Orientation
tag inEXIF data
, falling back to the XMP orientation triple inXMP data
.- Returns:
- Image orientation, or
Orientation.ROTATE_0
if orientation is not specified in EXIF or XMP data.
-
getXMP
-
getXMPElements
-
getXMPModel
-
toMap
Returns a map with the following structure:
{ "exif": See {@link Directory#toMap()}, "iptc": See {@link DataSet#toMap()}, "xmp_string": "<rdf:RDF>...</rdf:RDF>", "xmp_model": [Jena model], "xmp_elements": {@link Map} "native": {@link Map} }
This default implementation will return such a map, but subclasses that use the
native
key should override and set its value to aMap
rather than a string.- Returns:
- Map representation of the instance.
-