Calculations to get correct EXIF GpsImgDirection depending on Orientation?

I took three photos with the iPhone 3GS, all standing in the same position and all facing east (i.e. 90º). When the button was on the right (Horizontal (normal) orientation), the direction in the EXIF tag (GpsImgDirection) is given as 351/1 or 351.
When the button was on the bottom (portrait or Rotate 90 CW orientation), the direction in the EXIF tag is given as 85/1 or 85. When the button was on the left (Rotate 180 orientation), the direction in the EXIF header is given as 194/1 or 194.
If I'm facing east for all photos, the direction should always be somewhere close to 90. Why not? And is there a calculation that needs to be made taking the orientation into consideration to get the accurate direction? Depending on the camera rotation/orientation, I seem to get a range of N/E/S/W values that don't necessarily correspond to the actual direction, and the calculation is not obvious to me. Any ideas?

iphone 3Gs, iPhone OS 3.0.1

Posted on Aug 27, 2009 6:22 AM

Reply
2 replies

Nov 4, 2009 4:45 PM in response to jaibox

Hello, I met the same problem.
I hold a web site showing photos' GPS tags on OpenStreetMap, of which name is MapPIN'on OSM. I started to draw GPSImgDirection tag but photos taken by iPhone 3G always point wrong directions about 90 degrees from the right directions of camera. Some are clockwise, the other are anti-clockwise.

I thought that it's because the compass always point at the top of the iPhone. The direction always different for 90 degrees from the camera axis. If data of accelerometers can be read, right GPSImgDirection would be calculated from the compass direction. It would be a software bug. I would like to ask developers to fix it though, does someone know where should I report it?

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Calculations to get correct EXIF GpsImgDirection depending on Orientation?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.