Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-10994] Android: on OS 3.0 camera picture width/height values are always returned as the picture was in landscape

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionWon't Fix
Resolution Date2012-10-26T21:21:55.000+0000
Affected Version/sRelease 2.1.2, Release 3.0.0
Fix Version/s2012 Sprint 22 Core, 2012 Sprint 22
ComponentsAndroid
LabelsSupportTeam, api, core
ReporterFederico Casali
AssigneeAllen Yeung
Created2012-09-19T14:20:56.000+0000
Updated2013-03-27T22:31:41.000+0000

Description

Comments

  1. Ingo Muschenetz 2012-10-14

    We do need to solve this for 2.1.4. Updated as appropriate.
  2. Allen Yeung 2012-10-16

    The problem here is that some cameras, specifically Samsung Galaxy S2 and Samsung Galaxy Tab 10.1, will always take the picture in landscape, and then store the orientation inside the EXIF data. This is the case when you take a picture in the native camera app (without any Titanium code). Inside the native gallery app, they most likely check for the EXIF data and rotate it accordingly which is why you see it 'rotated' correctly. In titanium, we have added a property to do this inside the image view, called 'autorotate'. The example in the ticket is exhibiting the correct behavior since that's how the image was stored and the height/width will reflect on those values accordingly. Titanium does not currently support looking up the EXIF data but I have linked a ticket that's related to the feature.
  3. Allen Yeung 2012-10-26

    Marking as won't fix for now. Please refer to the ticket about exposing EXIF data.

JSON Source