Do iPhone 5 EXIF fields like AngleInfoRoll and AngleInfoYaw show compass direction?
Asked 4/12/2017
3 views
2 answers
0
I’m trying to interpret metadata from an iPhone 5 photo. The fields I’m seeing include:
- AngleInfoRoll: 270
- AngleInfoYaw: 0
- ConfidenceLevel: 286
- Orientation: Left
- LensModel: iPhone 5 front camera (2.18mm f/2.4)
Can these values tell me the compass direction the phone was facing when the photo was taken? Does using the front camera vs. rear camera affect that? There is no location data in the file.
Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0
Photography Stack Exchange contributor
9y ago
2 Answers
4
Pitch, Roll & Yaw are the descriptions of the three determining angles for orientation in space; originally used for aircraft.
On an iPhone they're assigned as follows...

Picture credit rpappalax
There's a question on Stack Overflow with some examples of orientation in space [& incidentally show the potential issue, known as gimbal lock, with using vectors to describe these rather than quaternions, but don't worry about that in this instance]
The figures in your data - 270° & 0° - are, however, just far too tidy to be real, imo, so perhaps it is only recording general orientation so a photo app will know which way round to view the picture.
That would be 'held it upright [portrait] with the home button at the bottom, & no information on Pitch, which might have given you the direction you were facing.
I'm sure I wouldn't trust it any further than that if you are trying to extrapolate an actual facing direction when the photo was taken, even if Pitch info is also in the exif somewhere, unless it is not a tidy number.
Having checked the exifs on a couple of iPhone photos, I'm guessing that data was actually applied by a 3rd party app, not the built-in camera app.
I compared one taken by a simple 'job sheet' app & one by the Apple camera app.
The first contained no GPS or orientation data at all.
The Apple app actually has a slew of positioning data, including GPS & direction
GPS Img Direction Ref : Magnetic North
GPS Img Direction : 106.8389831
GPS Dest Bearing Ref : Magnetic North
GPS Dest Bearing : 106.8389831
GPS Altitude : 17.4 m Above Sea Level
GPS Date/Time : 2017:04:13 06:31:47.58Z
GPS Latitude : 52 deg 27' 26.02" N
GPS Longitude : 0 deg 4' 46.93" W
GPS Position : 52 deg 27' 26.02" N, 0 deg 4' 46.93" W
...which would be a perfect way to tell where my house is & which way I was facing... if I hadn't messed the data up a bit ;)
Originally by user57929. Source · Licensed CC BY-SA 4.0
user57929
9y ago
0
Generated from our catalog & community — verify before relying on it.
Probably not. Based on the metadata names and how iPhone image metadata is commonly structured, Roll/Yaw describe the phone’s orientation in space rather than a reliable compass bearing. In other words, they’re more like how the phone was held/rotated, not necessarily which cardinal direction it faced.
The values 270 and 0 also look like neat orientation states, which suggests they may be used so software knows how to display the image correctly, similar to the separate Orientation tag (“Left”).
There’s nothing in the provided metadata that clearly proves a true compass heading was recorded. If GPS/location data is also missing, that further limits what you can infer.
“ConfidenceLevel” is unlikely to be related to compass direction. In iPhone/XMP metadata, it often appears near face/region information, so it more likely refers to confidence in face detection or a related region-analysis feature.
The LensModel entry simply identifies which camera was used. From the provided answers, it doesn’t establish that front vs. rear camera changes whether compass direction is stored.
So: these fields may indicate device/image orientation, but they are not enough to determine compass direction with confidence.
Recommended products
UniqueBot
AI9y ago
Your Answer
Related Questions
Can an iPhone save camera tilt/zenith angle in a photo’s metadata?
Software to visualize photo geotags with camera heading/field of view?
How can I record camera bearing and elevation angle with my photos without using cables?
Do cameras record compass direction or orientation in photo metadata, and can they track position better than GPS?
How can shadows and catchlights help identify a portrait lighting setup?