

The first page is the camera information and the second page is the thumbnail. Here are some answers for your questions:ġ) The EXIF data is laid out like a TIFF file with 2 pages. Or is there a way to guarantee that the size of the newly rotated thumbnail will be smaller or equal to previous thumbnail size to replace with?.So, is there a standard way to iterate through all tags and sub-directories, to recognize which EXIF tags contain offsets, and to update them if needed? Or the only way is to read a maximum of tags and rewrite only that are known? If not, then each tags containing an offset that points to a location beyond the thumbnail to replace should be updated.Is there any guarantee in the EXIF standards that the thumbnails are always written in the late EXIF data, just before the primary image?.

