This is definitely not a hangouts issue. I have seen this when posting stills to this site. There is something weird with how it is saving the JPG metadata or something. The picture looks right side up in previews but when I post it on here it is tilted 90 degrees. These photos had nothing to do with Hangouts at all.
I only see this with HDR photos. But it is something with the file itself, not just an app.
The issue lies with the Intent system and how resulting images are returned from Activities that are called with the ACTION_IMAGE_CAPTURE Intent. If you look at the
Camera page on the Android Developers site, you'll notice the following method:
Code:
takePicture(Camera.ShutterCallback shutter, Camera.PictureCallback raw, Camera.PictureCallback postview, Camera.PictureCallback jpeg)
The callbacks (PictureCallback raw, PictureCallback jpeg) are run after a photo has been captured. For camera applications that take HDR photos, they call this takePicture method more than once. Applications which use the ACTION_IMAGE_CAPTURE intent will grab
the first image returned as 'accepted' by the camera application. Now, with a standard (single) photo, it is properly rotated and adjusted when returned by the Activity in question. However, HDR applications will wait until all three (or more, for a greater number of DR brackets) are returned before making these adjustments. The result? Applications that query ACTION_IMAGE_CAPTURE (Hangouts, Tapatalk, any such app) will likely receive only the first image of the HDR set, not the processed HDR photo.
Edit: to clarify, the rotation and scaling issue can be caused independently of this HDR problem. I've had the problem myself.
What would cause an app like Textra to send correct and Hangouts to send it sideways and smashed?
This... I can't say.