Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-1139] Image orientations from gallery or camera wrong when imageEditing is false on device

GitHub Issuen/a
Resolution Date2011-10-26T17:03:16.000+0000
Affected Version/sn/a
Fix Version/sBacklog
Labelsalbum, camera, ios, iphone, orientation, photos
AssigneeReggie Seagraves


After taking a photo, or choosing a photo from the gallery on a the device WITHOUT using imageEditing to crop the photo, the orientation is always wrong.

To test, see the KS demo in: Phone > Save To Gallery > Background Image

Select a photo which was taken with the iPhone and you'll see that photos taken in portrait are set to the background rotated right 90 degrees. Also, photos which are taken in landscape-upside down (camera at the bottom) are rotated 180 degrees when applied to a background.

This works on the simulator fine, but not on the iPhone.
Also, it works OK after imageEditing has been used to make the square version.

The only photos which appear correctly are those which are taken in landscape (with the camera at the top of the phone as you hold it)


  1. Dustin Hyde 2011-10-26

    not valid, does not reproduce in TiMOB sdk version: 1.7.4.v20111025165811 Studio version: OS version: OSX 10.7.2 Lion Devices tested on: iPhone 3.1.2, 4.3.5, 5.0

JSON Source