Class JpegImageMetadata

    • Method Detail

      • findEXIFValueWithExactMatch

        public TiffField findEXIFValueWithExactMatch​(TagInfo tagInfo)
      • getEXIFThumbnailSize

        public java.awt.Dimension getEXIFThumbnailSize()
                                                throws ImageReadException,
                                                       java.io.IOException
        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 image
        java.io.IOException - if it fails to read the image size
      • getEXIFThumbnailData

        public byte[] getEXIFThumbnailData()
                                    throws ImageReadException,
                                           java.io.IOException
        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 image
        java.io.IOException - if an IO error occurred
      • getEXIFThumbnail

        public java.awt.image.BufferedImage getEXIFThumbnail()
                                                      throws ImageReadException,
                                                             java.io.IOException
        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 image
        java.io.IOException - if it fails to get the thumbnail or to read the image data
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • toString

        public java.lang.String toString​(java.lang.String prefix)
        Specified by:
        toString in interface ImageMetadata
      • dump

        public void dump()