Great question, and you described the double-rotation trap exactly right. That is precisely the case the compressor handles safely: when it preserves metadata, it also normalizes the Orientation tag to match the pixels, so the photo displays the right way up in every viewer with EXIF, GPS and the rest of the metadata intact. We verified this across the orientation values for exactly this reason. Thanks for raising it. It is the kind of detail that matters.
