Class ExifThumbnailDirectory


public class ExifThumbnailDirectory extends ExifDirectoryBase
One of several Exif directories. Otherwise known as IFD1, this directory holds information about an embedded thumbnail image.
Author:
Drew Noakes https://drewnoakes.com
  • Field Details

    • TAG_THUMBNAIL_OFFSET

      public static final int TAG_THUMBNAIL_OFFSET
      The offset to thumbnail image bytes, relative to the start of the IFD. To obtain the offset relative to the start of the TIFF data stream, use getAdjustedThumbnailOffset, which includes the value of getExifStartOffset.
      See Also:
    • TAG_THUMBNAIL_LENGTH

      public static final int TAG_THUMBNAIL_LENGTH
      The size of the thumbnail image data in bytes.
      See Also:
    • TAG_THUMBNAIL_COMPRESSION

      @Deprecated public static final int TAG_THUMBNAIL_COMPRESSION
      Deprecated.
      See Also:
  • Constructor Details

    • ExifThumbnailDirectory

      public ExifThumbnailDirectory(int exifStartOffset)
  • Method Details

    • getName

      public String getName()
      Description copied from class: Directory
      Provides the name of the directory, for display purposes. E.g. Exif
      Specified by:
      getName in class Directory
      Returns:
      the name of the directory
    • getExifStartOffset

      public int getExifStartOffset()
      Gets the offset at which the Exif data stream commenced within any containing stream.
    • getAdjustedThumbnailOffset

      public Integer getAdjustedThumbnailOffset()
      Returns the offset to thumbnail data within the outermost data stream. The value for TagThumbnailOffset is relative to the Exif data stream. Generally, consumers of thumbnail data need this value relative to the outermost stream, so that the thumbnail data may be extracted from that stream. This property adds the value of ExifStartOffset to this tag's value in order to produce that value. Returns null when the tag is not defined in this directory.