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
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TiffImageMetadata
private static final String
private final JpegPhotoshopMetadata
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
dump()
findEXIFValue
(TagInfo tagInfo) findEXIFValueWithExactMatch
(TagInfo tagInfo) getExif()
Get 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()
-
Field Details
-
photoshop
-
exif
-
NEWLINE
-
-
Constructor Details
-
JpegImageMetadata
-
-
Method Details
-
getExif
-
getPhotoshop
-
findEXIFValue
-
findEXIFValueWithExactMatch
-
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:
ImageReadException
- if it fails to read the imageIOException
- if it fails to read the image size
-
getEXIFThumbnailData
Returns the data of the first JPEG thumbnail found in the EXIF metadata.- Returns:
- JPEG data or null if no thumbnail.
- Throws:
ImageReadException
- if it fails to read the imageIOException
- if an IO error occurred
-
getEXIFThumbnail
Get the thumbnail image if available.- Returns:
- the thumbnail image. May be
null
if no image could be found. - Throws:
ImageReadException
- if it fails to read the imageIOException
- if it fails to get the thumbnail or to read the image data
-
getRawImageData
-
getItems
- Specified by:
getItems
in interfaceImageMetadata
-
toString
-
toString
- Specified by:
toString
in interfaceImageMetadata
-
dump
public void dump()
-