public class JpegImageMetadata extends Object implements ImageMetadata
ImageMetadata.ImageMetadataItem
Constructor and Description |
---|
JpegImageMetadata(JpegPhotoshopMetadata photoshop,
TiffImageMetadata exif) |
Modifier and Type | Method and Description |
---|---|
void |
dump() |
TiffField |
findEXIFValue(TagInfo tagInfo) |
TiffField |
findEXIFValueWithExactMatch(TagInfo tagInfo) |
TiffImageMetadata |
getExif() |
BufferedImage |
getEXIFThumbnail()
Get the thumbnail image if available.
|
byte[] |
getEXIFThumbnailData()
Returns the data of the first JPEG thumbnail found in the EXIF metadata.
|
Dimension |
getEXIFThumbnailSize()
Returns the size of the first JPEG thumbnail found in the EXIF metadata.
|
List<ImageMetadata.ImageMetadataItem> |
getItems() |
JpegPhotoshopMetadata |
getPhotoshop() |
TiffImageData |
getRawImageData() |
String |
toString() |
String |
toString(String prefix) |
public JpegImageMetadata(JpegPhotoshopMetadata photoshop, TiffImageMetadata exif)
public TiffImageMetadata getExif()
public JpegPhotoshopMetadata getPhotoshop()
public Dimension getEXIFThumbnailSize() throws ImageReadException, IOException
ImageReadException
- if it fails to read the imageIOException
- if it fails to read the image sizepublic byte[] getEXIFThumbnailData() throws ImageReadException, IOException
ImageReadException
- if it fails to read the imageIOException
- if an IO error occurredpublic BufferedImage getEXIFThumbnail() throws ImageReadException, IOException
null
if no image could
be found.ImageReadException
- if it fails to read the imageIOException
- if it fails to get the thumbnail or to read the image datapublic TiffImageData getRawImageData()
public List<ImageMetadata.ImageMetadataItem> getItems()
getItems
in interface ImageMetadata
public String toString(String prefix)
toString
in interface ImageMetadata
public void dump()
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.