[android-developers] Re: Image captured from my app is rotated by default

2014-03-25 Thread Doug Gordon
This may not be related to your problem, but I believe that there are basically two ways that the orientation of a JPEG photo is determined. One is simply by the way the actual data in the file is laid out; for example, whether it is stored as 1024x768 or 768x1024. The other determinate is an

[android-developers] Re: Image captured from my app is rotated by default

2014-03-25 Thread Nobu Games
This is expected behavior, and Doug's assumption is right. JPEG images may contain EXIF http://en.wikipedia.org/wiki/Exchangeable_image_file_formatdata blocks that also specify the orientation of the image. On your server you need to read the orientation data and use it to rotate the image into