public AbstractTiffImageData getRawImageData() {
        if (exif == null) {
            return null;
        }
        final List<? extends ImageMetadataItem> dirs = exif.getDirectories();
        for (final ImageMetadataItem d : dirs) {
            final TiffImageMetadata.Directory dir = (TiffImageMetadata.Directory) d;
            // Debug.debug("dir", dir);
            final AbstractTiffImageData rawImageData = dir.getTiffImageData();
            if (null != rawImageData) {
                return rawImageData;
            }
        }

        return null;
    }
Returns the size of the first JPEG thumbnail found in the EXIF metadata.

@return Thumbnail width and height or null if no thumbnail.
@throws ImagingException if it fails to read the image
@throws IOException      if it fails to read the image size
src/main/java/org/apache/commons/imaging/formats/jpeg/JpegImageMetadata.java