{ "id": "97568", "key": "TIMOB-10021", "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": "13573", "description": "Sprint 2012-15 API", "name": "Sprint 2012-15 API", "archived": true, "released": true, "releaseDate": "2012-07-30" } ], "resolution": { "id": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2012-07-19T14:47:36.000+0000", "created": "2012-07-18T09:29:58.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "SupportTeam", "api" ], "versions": [ { "id": "13271", "description": "Release 2.1.0", "name": "Release 2.1.0", "archived": false, "released": true, "releaseDate": "2012-06-29" } ], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2013-03-13T15:04:28.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" } ], "attachment": [], "flagged": false, "summary": "iOS: Cannot save rotated camera images after converting to Blob", "creator": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "vjoshi", "key": "vjoshi", "displayName": "Varun Joshi", "active": true, "timeZone": "America/New_York" }, "environment": "Titanium SDK: 2.1.0.GA\r\nPlatform OS: iOS ver 5.0", "comment": { "comments": [ { "id": "208427", "author": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Not sure if this is a valid use case but assigning it to engineering team for evaluation.", "updateAuthor": { "name": "ngupta", "key": "ngupta", "displayName": "Neeraj Gupta", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-18T20:49:19.000+0000", "updated": "2012-07-18T20:49:19.000+0000" }, { "id": "208504", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Long term solution:\r\n\r\nExpose a method to rotate them directly. Perhaps as an external graphics module.\r\n\r\nShort term solution:\r\n\r\nBecause of how computer graphics work, the transform is not applied until after the view is rendered. That is, an imageView's transform will NOT appear within its own toImage, but only in toImages of parent views. Thus, the following code DOES work:\r\n{code}\r\n/********  capture image in a imageView  ********/\r\nvar wrapperView = Ti.UI.createView();\r\nvar imageView = Ti.UI.createImageView({  \r\n      width:win.width,\r\n      height:win.height,\r\n      image:event.media\r\n});\r\nwrapperView.add(imageView);\r\nwin.add(wrapperView);\r\n    \r\n/******** rotate the imageView ************/\r\nvar transformCurrentPicture = Titanium.UI.create2DMatrix();\r\n  imageView.addEventListener('click',function(e){\r\n      transformCurrentPicture = transformCurrentPicture.rotate(90);\r\n      imageView.transform=transformCurrentPicture;\r\n      savePhoto('Hello.png',wrapperView.toImage());   \r\n});\r\n{code}\r\n\r\nMoving this be marked invalid, and, if so desired, a module feature request for image manipulations.", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-07-19T14:02:06.000+0000", "updated": "2012-07-19T14:04:55.000+0000" }, { "id": "229720", "author": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Closing as invalid", "updateAuthor": { "name": "nhuynh", "key": "nhuynh", "displayName": "Natalie Huynh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-12-04T00:07:13.000+0000", "updated": "2012-12-04T00:07:13.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }