The recently-launched Nexus 5X smartphone from Google includes a 12.3MP rear camera. However, many owners of the phone have discovered that taking images with the Nexus 5X have resulted in photos that are upside down. Now, a Google team member has revealed the reason, as well as a solution to the problem.
According to a Reddit post by Eino-Ville Talvala, the tech lead for Android's camera framework:
Because of manufacturing reasons, we needed to mount the Nexus 5X main sensor in the less-common (reverse landscape) orientation - the wires from the sensor chip wouldn't have fit otherwise. Unfortunately, our old camera API (which is deprecated, but most apps still use it) isn't terribly user-friendly, and requires application developers to explicitly set the preview rotation. On most devices, though, it turns out the default rotation is correct for a forced-landscape app, so many apps never call the display orientation method.
The solution to the problem? Talvala says that it's up to image app developers to update their software so it will work with Google's most recent imaging APIs.
So if you do see apps with upside-down camera preview on Nexus 5X, please let the developers know about this - Android's developer relations folks are trying to reach out to apps as we find them, and LG is also helping out, but it might take a bit before everyone's up to speed on this issue.