Class JpegImageMetadata
java.lang.Object
org.apache.commons.imaging.formats.jpeg.JpegImageMetadata
- All Implemented Interfaces:
ImageMetadata
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.commons.imaging.common.ImageMetadata
ImageMetadata.ImageMetadataItem
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dump()
findExifValue
(TagInfo tagInfo) findExifValueWithExactMatch
(TagInfo tagInfo) getExif()
Gets the thumbnail image if available.byte[]
Returns the data of the first JPEG thumbnail found in the EXIF metadata.Returns the size of the first JPEG thumbnail found in the EXIF metadata.getItems()
toString()
-
Constructor Details
-
JpegImageMetadata
-
-
Method Details
-
dump
-
findExifValue
-
findExifValueWithExactMatch
-
getExif
-
getExifThumbnail
Gets the thumbnail image if available.- Returns:
- the thumbnail image. May be
null
if no image could be found. - Throws:
ImagingException
- if it fails to read the imageIOException
- if it fails to get the thumbnail or to read the image data
-
getExifThumbnailData
Returns the data of the first JPEG thumbnail found in the EXIF metadata.- Returns:
- JPEG data or null if no thumbnail.
-
getExifThumbnailSize
Returns the size of the first JPEG thumbnail found in the EXIF metadata.- Returns:
- Thumbnail width and height or null if no thumbnail.
- Throws:
ImagingException
- if it fails to read the imageIOException
- if it fails to read the image size
-
getItems
- Specified by:
getItems
in interfaceImageMetadata
-
getPhotoshop
-
getRawImageData
-
toString
-
toString
- Specified by:
toString
in interfaceImageMetadata
-