{ "id": "163271", "key": "TIMOB-23916", "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": [ { "id": "17608", "name": "Release 6.1.0", "archived": false, "released": true, "releaseDate": "2017-05-26" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2017-03-01T14:15:07.000+0000", "created": "2016-09-17T15:50:09.000+0000", "priority": { "name": "Critical", "id": "1" }, "labels": [], "versions": [ { "id": "18253", "name": "Release 5.5.0", "archived": false, "released": true, "releaseDate": "2016-09-13" } ], "issuelinks": [], "assignee": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-08T13:23:51.000+0000", "status": { "description": "The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.", "name": "Closed", "id": "6", "statusCategory": { "id": 3, "key": "done", "colorName": "green", "name": "Done" } }, "components": [ { "id": "10206", "name": "iOS", "description": "iOS Platform" } ], "description": "h6.description\r\n If I take a picture in the landscape, the result saved image show white color(top and bottom).\r\n\r\nh6. Steps to Reproduce\r\n1. Just run the following code on the device.\r\n2. Take a picture in landscape mode.\r\n3. Now see the image from the device gallery, show white color(top and bottom). This is the issue.\r\n\r\n\r\nh6.Test case\r\n{code:title=app.js}\r\nvar win = Titanium.UI.createWindow({\r\n\ttitle : 'Tab 1',\r\n\tbackgroundColor : '#fff'\r\n});\r\n\r\nvar camera = Ti.UI.createButton({\r\n\ttitle : 'Open Camera',\r\n\theight : 50,\r\n\twidth : 100,\r\n\ttop : 50,\r\n\tleft : 50\r\n});\r\n\r\nwin.add(camera);\r\n\r\nfunction openCamera() {\r\n\tif (Ti.Media.isCameraSupported) {\r\n\t\t//Ti.Media.setCameraFlashMode(Ti.Media.CAMERA_FLASH_ON);\r\n\t\t//Ti.Media.setCameraFlashMode(1);\r\n\t\t//alert(Ti.Media.getCameraFlashMode());\r\n\t\t//check if this return 0 always\r\n\r\n\t\tTitanium.Media.showCamera({\r\n\t\t\tsuccess : function(event) {\r\n\t\t\t\tTi.API.info('success caprured image saveToPhotoGallery');\r\n\t\t\t\tTi.Media.hideCamera();\r\n\r\n\t\t\t},\r\n\t\t\tcancel : function() {\r\n\t\t\t\t// called when user cancels taking a picture\r\n\t\t\t},\r\n\t\t\terror : function(error) {\r\n\t\t\t\t// called when there's an error\r\n\t\t\t\tvar a = Titanium.UI.createAlertDialog({\r\n\t\t\t\t\ttitle : 'Camera'\r\n\t\t\t\t});\r\n\t\t\t\tif (error.code == Titanium.Media.NO_CAMERA) {\r\n\t\t\t\t\ta.setMessage('Please run this test on device');\r\n\t\t\t\t} else {\r\n\t\t\t\t\ta.setMessage('Unexpected error: ' + error.code);\r\n\t\t\t\t}\r\n\t\t\t\ta.show();\r\n\t\t\t},\r\n\t\t\tsaveToPhotoGallery : true,\r\n\t\t\t//overlay : overlay,\r\n\t\t\tallowEditing : true,\r\n\t\t\tmediaTypes : [Ti.Media.MEDIA_TYPE_VIDEO, Ti.Media.MEDIA_TYPE_PHOTO],\r\n\t\t\tshowControls : true // always use to get the basic facility about camera.\r\n\t\t\t//overlay:overlayview // do not use overlay to when you want to use the switching facility\r\n\t\t});\r\n\r\n\t}\r\n}\r\n\r\ncamera.addEventListener('click', function() {\r\n\topenCamera();\r\n});\r\n\r\nwin.add(camera);\r\nwin.open();\r\n\r\n{code}\r\n\r\nActual: If I take a picture in landscape, the result will be a portrait So some top of portion is showing white color.\r\n\r\nExpected: If I take a picture in landscape, the result captured image should not show white color.", "attachment": [], "flagged": false, "summary": "iOS: After taking picture from landscape mode showing white color on top and bottom portion.", "creator": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "subtasks": [], "reporter": { "name": "morahman", "key": "morahman", "displayName": "Motiur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "environment": "Appcelerator Command-Line Interface, version 5.5.0\r\nOperating System\r\n Name = Mac OS X\r\n Version = 10.11.4\r\n Architecture = 64bit\r\n # CPUs = 4\r\n Memory = 8589934592\r\nNode.js\r\n Node.js Version = 4.5.0\r\n npm Version = 2.15.9\r\nTitanium CLI\r\n CLI Version = 5.0.9\r\nTitanium SDK\r\n SDK Version = 5.5.0.GA\r\n Target Platform = iphone 5s v9.3.4", "closedSprints": [ { "id": 847, "state": "closed", "name": "2017 Sprint 05 SDK", "startDate": "2017-02-26T17:39:21.095Z", "endDate": "2017-03-12T17:39:00.000Z", "completeDate": "2017-03-12T19:14:38.838Z", "originBoardId": 114 } ], "comment": { "comments": [ { "id": "396780", "author": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "body": "[~morahman] I am assuming you tried to reproduce this? Is this a regression? Does older SDK face the same problem?", "updateAuthor": { "name": "cng", "key": "cng", "displayName": "Chee Kiat Ng", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2016-09-21T06:30:27.000+0000", "updated": "2016-09-21T06:30:27.000+0000" }, { "id": "399207", "author": { "name": "chanakya", "key": "chanakya", "displayName": "chanakya", "active": true, "timeZone": "America/Los_Angeles" }, "body": "HI All,\r\n\r\nIs there any progress on this", "updateAuthor": { "name": "chanakya", "key": "chanakya", "displayName": "chanakya", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-10-18T08:39:07.000+0000", "updated": "2016-10-18T08:39:07.000+0000" }, { "id": "403157", "author": { "name": "chanakya", "key": "chanakya", "displayName": "chanakya", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi All,\r\n\r\nIs there any progress...", "updateAuthor": { "name": "chanakya", "key": "chanakya", "displayName": "chanakya", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2016-12-12T09:57:54.000+0000", "updated": "2016-12-12T09:57:54.000+0000" }, { "id": "403359", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nWe have tested this issue on following SDKs but got same result.After taking picture from landscape mode showing white color on top and bottom portion.\r\n\r\n*Testing environment:*\r\nSDK: *6.0.0.GA, 5.5.1.GA,5.5.0.GA, 5.4.0.GA, 5.3.1.GA*\r\nAppcelerator Command-Line Interface, version 6.0.0\r\n\r\nThanks", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2016-12-14T10:51:15.000+0000", "updated": "2016-12-14T10:51:15.000+0000" }, { "id": "406030", "author": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If allowEditing is true, whatever is inside the cropping rectangle get captured and that get saved. If we capture any image in landscape mode, in cropping rectangle it will be with a black strip at top followed by actual image. If we do not adjust image , the whole part inside the cropping rectangle get captured. So image saved in gallery will have black strip. This is native behavior. \r\n\r\n In our sdk rather black strip it was giving white. In following PR it is aligned to native behavior.\r\nPR : https://github.com/appcelerator/titanium_mobile/pull/8810\r\n", "updateAuthor": { "name": "vijaysingh", "key": "vijaysingh", "displayName": "Vijay Singh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2017-02-01T09:39:23.000+0000", "updated": "2017-02-01T09:39:23.000+0000" }, { "id": "408206", "author": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "body": "Verified as fixed, when taking pictures in landscape, white borders are no longer present around the saved image.\r\n\r\nTested On:\r\niPhone 7 10.2 Device\r\nMac OS Sierra (10.12.2)\r\nTi SDK: 6.1.0\r\nAppc Studio: 4.8.1.201701192045\r\nAppc NPM: 4.2.9-1\r\nApp CLI: 6.1.0\r\nXcode 8.2.1\r\nNode v4.4.7\r\n", "updateAuthor": { "name": "htbryant", "key": "htbryant", "displayName": "Harry Bryant", "active": true, "timeZone": "Europe/London" }, "created": "2017-03-01T14:14:24.000+0000", "updated": "2017-03-01T14:14:24.000+0000" } ], "maxResults": 6, "total": 6, "startAt": 0 } } }