{ "id": "116243", "key": "TIMOB-14306", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "10153", "key": "TIMOB", "name": "Titanium SDK/CLI", "projectCategory": { "id": "10100", "description": "Titanium and related SDKs used in application development", "name": "Client" } }, "fixVersions": [], "resolution": null, "resolutiondate": null, "created": "2013-06-20T09:54:15.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "qe-3.2.0" ], "versions": [ { "id": "15479", "description": "Release 3.1.2", "name": "Release 3.1.2", "archived": true, "released": true, "releaseDate": "2013-07-31" } ], "issuelinks": [], "assignee": null, "updated": "2018-02-28T20:04:24.000+0000", "status": { "description": "The issue is open and ready for the assignee to start work on it.", "name": "Open", "id": "1", "statusCategory": { "id": 2, "key": "new", "colorName": "blue-gray", "name": "To Do" } }, "components": [], "description": "iOS: Image taken in landscape orients itself to portrait.\r\n\r\nThis is not a regression issue occurs since 3.0.0.GA\r\n\r\nSteps to reproduce:\r\n1.Run the app.\r\n{code}\r\nfunction fireUpTheCamera() {\r\n Titanium.Media.showCamera({\r\n \r\n success : function(event) {\r\n var cropRect = event.cropRect;\r\n var image = event.media;\r\n \r\n Ti.API.debug('Our type was: ' + event.mediaType);\r\n if (event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {\r\n \r\n var imageView = Ti.UI.createImageView({\r\n width : win.width,\r\n height : win.height,\r\n image : event.media,\r\n autorotate: true\r\n });\r\n win.add(imageView);\r\n } else {\r\n alert(\"got the wrong type back =\" + event.mediaType);\r\n }\r\n },\r\n cancel : function() {\r\n },\r\n error : function(error) {\r\n // create alert\r\n var a = Titanium.UI.createAlertDialog({\r\n title : 'Camera'\r\n });\r\n \r\n // set message\r\n if (error.code == Titanium.Media.NO_CAMERA) {\r\n a.setMessage('Please run this test on device');\r\n } else {\r\n a.setMessage('Unexpected error: ' + error.code);\r\n }\r\n \r\n // show alert\r\n a.show();\r\n },\r\n saveToPhotoGallery : true,\r\n allowEditing : true,\r\n mediaTypes : [Ti.Media.MEDIA_TYPE_VIDEO, Ti.Media.MEDIA_TYPE_PHOTO]\r\n });\r\n}\r\n \r\nwin = Titanium.UI.createWindow({\r\n backgroundColor: 'blue'\r\n});\r\nwin.addEventListener('open', function(e) {\r\n fireUpTheCamera();\r\n});\r\n \r\nwin.open();\r\n{code}\r\n\r\n2.Take image in landscape mode.\r\n\r\nExpected:\r\nImage should be taken in landscape mode.\r\n\r\nActual:\r\nImage is shown in portrait mode.", "attachment": [], "flagged": false, "summary": "iOS: Image taken in landscape orients itself to portrait.", "creator": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "subtasks": [], "reporter": { "name": "pmishra", "key": "pmishra", "displayName": "Paras Mishra", "active": true, "timeZone": "Asia/Kolkata" }, "environment": "Device : iPhone 5 , iOS version : 6.1.4\r\nSDK: 3.1.2.v20130619101604\r\nCLI version : 3.1.1\r\nOS : MAC OSX 10.7.5\r\nAppcelerator Studio, build: 3.1.1.201306131423\r\nXCode : 4.5.1", "comment": { "comments": [ { "id": "301888", "body": "This issue was previously scheduled to be worked on in more than one sprint:\r\n* 'Release 3.1.2' (on board '3.1.X Triage')\r\n* 'Release 3.0.1/TS 3.0.2' (on board '3.1.0 Triage')\r\n\r\nStarting from JIRA Agile 6.3, an issue can only belong to a single future sprint. Read more about this change: http://docs.atlassian.com/agile/docs-0630/Sprint+Marker+Migration\r\n\r\nThis issue is now scheduled for future sprint 'Release 3.1.2' (on board '3.1.X Triage').\r\n\r\nIf this is incorrect, please update the issue accordingly.\r\n\r\nThis comment was automatically generated by JIRA. If it is no longer relevant, please feel free to delete it.", "created": "2014-04-21T15:32:17.000+0000", "updated": "2014-04-21T15:32:17.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }