apache/cordova-plugin-camera — pull request #11 by dieppe (2014-01-28 11:35:20+00:00)
Title: Fix gallery orientation android

On Android, I was having the following problem:

pick a picture from the gallery => the picture looks sideways

After a bit of looking in the plugin code, I found out that the exif infos were passed along the resized&rotated image, without resetting the orientation information.

Since my code use the exif orientation as a fallback in case the rotate did not take place (OOM, which is now caught for gallery image too), the image was rotated twice, once by the plugin, and another time inside my code.

This pull request fix that, and as mentioned, also catch potential OOM when rotating a gallery image.

(it is based against the master branch, because I did not see there was a dev one, but luckily no change has happened in the dev branch for the android version)