{ "id": "85837", "key": "TIMOB-7511", "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": "12095", "description": "", "name": "Sprint 2012-03", "archived": true, "released": true, "releaseDate": "2012-02-12" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" }, { "id": "13070", "description": "Release 1.8 Service Pack 2", "name": "Release 1.8.2", "archived": true, "released": true, "releaseDate": "2012-02-29" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-02-14T23:29:04.000+0000", "created": "2012-02-01T18:02:09.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "parity" ], "versions": [ { "id": "12580", "description": "Dual Runtime 1.8.0", "name": "Release 1.8.0.1", "archived": true, "released": true, "releaseDate": "2011-12-22" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "issuelinks": [], "assignee": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2012-03-04T21:35:35.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": "h4. Problem description\r\nThe camera provides the option to move and scale, producing images with low quality by default (640x640). \r\n\r\nh4. Expected behavior\r\nThe camera should be able to store a high quality image if needed (when editing).\r\n\r\nh4. Actual behavior \r\nThe picture from the camera will be in low quality by default.\r\n\r\nh4. Test case\r\n\r\n{code}\r\nvar win = Titanium.UI.createWindow();\r\nTitanium.Media.showCamera({\r\n\r\n\tsuccess:function(event)\r\n\t{\r\n\t\tvar cropRect = event.cropRect;\r\n\t\tvar image = event.media;\r\n\r\n\t\tTi.API.debug('Our type was: '+event.mediaType);\r\n\t\tif(event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO)\r\n\t\t{\r\n\t\t\tvar imageView = Ti.UI.createImageView({\r\n\t\t\t\twidth:win.width,\r\n\t\t\t\theight:win.height,\r\n\t\t\t\timage:event.media\r\n\t\t\t});\r\n\t\t\twin.add(imageView);\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\talert(\"got the wrong type back =\"+event.mediaType);\r\n\t\t}\r\n\t},\r\n\tcancel:function()\r\n\t{\r\n\t},\r\n\terror:function(error)\r\n\t{\r\n\t\t// create alert\r\n\t\tvar a = Titanium.UI.createAlertDialog({title:'Camera'});\r\n\r\n\t\t// set message\r\n\t\tif (error.code == Titanium.Media.NO_CAMERA)\r\n\t\t{\r\n\t\t\ta.setMessage('Please run this test on device');\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\ta.setMessage('Unexpected error: ' + error.code);\r\n\t\t}\r\n\r\n\t\t// show alert\r\n\t\ta.show();\r\n\t},\r\n\tsaveToPhotoGallery:true,\r\n\tallowEditing:true,\r\n\tmediaTypes:[Ti.Media.MEDIA_TYPE_VIDEO,Ti.Media.MEDIA_TYPE_PHOTO]\r\n});\r\n\r\nwin.open();\r\n{code}\r\n\r\nh4. Community Discusion\r\nhttp://developer.appcelerator.com/question/131329/low-quality-images-with-showcamera", "attachment": [], "flagged": false, "summary": "iOS: Camera component is only providing low resolution pictures (when allowing edit)", "creator": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "subtasks": [], "reporter": { "name": "mpmiranda", "key": "mpmiranda", "displayName": "Mauro Parra-Miranda", "active": true, "timeZone": "America/Mexico_City" }, "environment": "Titanium SDK version: 1.8.1 / 1.9.0.v20120201134634 \r\nPlatform & version: iOS 5.0/4.3\r\nDevice Details: iphone4 \r\nHost Operating System: OSX Lion \r\nTitanium Studio version: 1.0.8", "comment": { "comments": [ { "id": "181527", "author": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Pull pending #1334\r\n", "updateAuthor": { "name": "vduggal", "key": "vduggal", "displayName": "Vishal Duggal", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-02T15:15:26.000+0000", "updated": "2012-02-02T15:15:26.000+0000" }, { "id": "182286", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 1.9.0.v20120207000134\r\nTitanium Studio, build: 1.0.8.201201262211\r\nxcode: 4.2\r\nDevices: iPhone 4S Sprint (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-02-07T15:10:33.000+0000", "updated": "2012-02-07T15:10:33.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }