Check coded and displayed orientation
Read the stored dimensions and whether rotation metadata is present. Compare an asymmetric landmark in the actual picture.
Create a normalized derivative if needed
Keep the original and export the approved portrait orientation into the picture. Verify metadata and pixels together to avoid rotating the same material twice.
Example
A phone viewer and a transcode pipeline can interpret rotation metadata differently when a wrapper or tag does not meet the service's contract.
Pass condition
The delivered picture is upright when opened in the intended player and the reference coordinates still point to the intended subject.