I try to extract a thumbnail from a JPG, but exifThumbnail.getInt(ExifThumbnailDirectory.TAG_THUMBNAIL_OFFSET) reports the wrong offset compared to exiftool, which has the correct value.
I tried this on multiple Unsplash photos like this one:
I'm certain the logic determining the thumbnail offset is broken.
The thumbnail length is correct.
I try to extract a thumbnail from a JPG, but
exifThumbnail.getInt(ExifThumbnailDirectory.TAG_THUMBNAIL_OFFSET)
reports the wrong offset compared toexiftool
, which has the correct value.I tried this on multiple Unsplash photos like this one:![FFsiikfJEAI](https://user-images.githubusercontent.com/9299303/171609969-5eaf0433-244b-40df-8e6e-bdd4e29f57ae.jpg)
I'm certain the logic determining the thumbnail offset is broken. The thumbnail length is correct.