{ "id": "104604", "key": "AC-2431", "fields": { "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false }, "project": { "id": "12217", "key": "AC", "name": "Appcelerator - INBOX", "projectCategory": { "id": "10000", "description": "", "name": "Customer Service" } }, "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-11-09T01:05:40.000+0000", "created": "2012-11-07T15:13:07.000+0000", "labels": [], "versions": [], "issuelinks": [ { "id": "22698", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "65021", "key": "TIMOB-3887", "fields": { "summary": "Android: Image taken in portrait orients itself to landscape ", "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" } }, "priority": { "name": "Medium", "id": "3" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2016-03-08T07:41: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": "14548", "name": "Titanium SDK & CLI", "description": "Please enter tickets related to the MobileSDK here." } ], "description": "- Take a photo that was in portrait orientation. Save or place photo into an image view and orientation is not respected\r\n- Open a photo that was taken with Camera in portrait orientation. Image is shown in landscape mode.", "attachment": [], "flagged": false, "summary": "Pictures taken on Galaxy S3 do not respect Orientation", "creator": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "subtasks": [], "reporter": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "environment": "Android Galaxy S3", "comment": { "comments": [ { "id": "226547", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-07T18:46:02.000+0000", "updated": "2012-11-07T18:46:02.000+0000" }, { "id": "226557", "author": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "body": "Was just able to replicate with 3.0.0.v20121106114610 on Galaxy S3", "updateAuthor": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "created": "2012-11-07T19:06:26.000+0000", "updated": "2012-11-07T19:06:26.000+0000" }, { "id": "226559", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Hi Jerod,\n\nI just re-tested it with S3 and the sample test case provided in the jira ticket with 3.0.0.v20121106114610 build. The image orientation is proper after taking a pic from camera. Please let me know if you are using a different test case or doing differently. If not, could you please test it on another device?\n\nRegards,\nAnirudh", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-07T19:17:06.000+0000", "updated": "2012-11-07T19:17:06.000+0000" }, { "id": "226573", "author": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "body": "I see the autorotate:true does allow the exif data to be read for the imageview, but in our use case we're need to do some image manipulation and then save the file to storage without attaching the image to the display.\n\n1. Take a photo\n2. Create thumbnail of photo and save\n3. Attach overlay to photo cropped to certain dimensions and save that photo", "updateAuthor": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "created": "2012-11-07T19:38:11.000+0000", "updated": "2012-11-07T19:38:11.000+0000" }, { "id": "226575", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "If you can provide me a simple test case of what you are doing, I shall test it and re-open the Jira if necessary.\n\nRegards,\nAnirudh", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-07T19:51:39.000+0000", "updated": "2012-11-07T19:51:39.000+0000" }, { "id": "226580", "author": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "body": "Is there a way to read EXIF data to determine orientation of photo in the success callback function of the event.media ?", "updateAuthor": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "created": "2012-11-07T20:23:36.000+0000", "updated": "2012-11-07T20:23:36.000+0000" }, { "id": "226619", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-07T22:12:11.000+0000", "updated": "2012-11-07T22:12:11.000+0000" }, { "id": "226746", "author": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "body": "The toImage() call on android was causing consistent crashing but this seems to have done the trick:\n\n{code}\n var imageFile = event.media; \n var imageAsTaken = Ti.UI.createImageView({\n image : imageFile,\n autorotate : true\n });\n if (!ui.isAndroid()) {\n imageFile = imageAsTaken.toImage();\n } else {\n imageFile = imageAsTaken.toBlob();\n }\n{code}", "updateAuthor": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "created": "2012-11-08T19:27:12.000+0000", "updated": "2012-11-08T19:27:12.000+0000" }, { "id": "226798", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Cool. Good to know about it. Please follow it up on the other ticket ( exif data ). Can i close the ticket if you dont have any further questions?\n\nRegards,\nAnirudh", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-09T00:20:26.000+0000", "updated": "2012-11-09T00:20:26.000+0000" }, { "id": "226799", "author": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "body": "Yes, you can close. Thank you", "updateAuthor": { "name": "jerodfritz", "key": "jerodfritz", "displayName": "Jerod Fritz", "active": true, "timeZone": "America/New_York" }, "created": "2012-11-09T00:25:59.000+0000", "updated": "2012-11-09T00:25:59.000+0000" }, { "id": "226806", "author": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks :)", "updateAuthor": { "name": "anagesh", "key": "anagesh", "displayName": "Anirudh Nagesh", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-11-09T01:05:40.000+0000", "updated": "2012-11-09T01:05:40.000+0000" } ], "maxResults": 11, "total": 11, "startAt": 0 } } }