{ "id": "171662", "key": "AC-5738", "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": "3", "description": "The problem is a duplicate of an existing issue.", "name": "Duplicate" }, "resolutiondate": "2018-05-16T15:15:47.000+0000", "created": "2018-05-16T06:00:01.000+0000", "labels": [], "versions": [], "issuelinks": [], "assignee": { "name": "shossain", "key": "shossain", "displayName": "Shak Hossain", "active": false, "timeZone": "America/Los_Angeles" }, "updated": "2018-05-16T15:15:48.000+0000", "status": { "description": "A resolution has been taken, and it is awaiting verification by reporter. From here issues are either reopened, or are closed.", "name": "Resolved", "id": "5", "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": "I was trying to crop the image using iOS inbuilt cropping feature for gallery/camera pictures.\r\n\r\nI had set the *allowEditing* to *true*, but the cropped image is incorrect and seems that cropping is being done from top-left corner instead of actual cropping area. Also tried by saving the cropped picture in device storage but it is incorrect there as well. \r\n\r\nHere's the sample code I used and the screenshots for the same.\r\n\r\n\r\n{code:java}\r\nvar win = Ti.UI.createWindow({\r\n backgroundColor : 'white'\r\n });\r\n\r\n win.add(Ti.UI.createView({\r\n top : 0,\r\n height : 60,\r\n backgroundColor : '#1b56d1'\r\n }));\r\n\r\n win.add(Ti.UI.createLabel({\r\n top : 25,\r\n text : \"Photo Editing Bug\",\r\n font : {\r\n fontSize : 20,\r\n fontWeight : 'bold'\r\n },\r\n color : 'white'\r\n }));\r\n\r\n var image_view = Ti.UI.createImageView({\r\n bottom : 70,\r\n top : 70,\r\n left : 10,\r\n right : 10,\r\n backgroundColor : '#ddd'\r\n });\r\n\r\n var button = Ti.UI.createButton({\r\n title :' TAKE PICTURE ',\r\n bottom : 20,\r\n backgroundColor : 'blue',\r\n color : 'white'\r\n });\r\n\r\n button.addEventListener('click', function () {\r\n Ti.Media.openPhotoGallery({\r\n allowEditing : true,\r\n mediaTypes : [Ti.Media.MEDIA_TYPE_PHOTO],\r\n success : function (e) {\r\n image_view.image = e.media;\r\n }\r\n });\r\n });\r\n\r\n win.add(image_view);\r\n win.add(button);\r\n\r\n win.open();\r\n{code}\r\n", "attachment": [ { "id": "65174", "filename": "1.png", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-16T05:58:36.000+0000", "size": 32340, "mimeType": "image/png" }, { "id": "65173", "filename": "2.png", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-16T05:58:45.000+0000", "size": 862646, "mimeType": "image/png" }, { "id": "65172", "filename": "3.png", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-16T05:59:01.000+0000", "size": 711935, "mimeType": "image/png" } ], "flagged": false, "summary": "iOS openPhotoGallery method gives incorrect image when allowEditing is set to true", "creator": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "Titanium SDK - 7.1.1.GA\r\niOS version - 11.3\r\n", "comment": { "comments": [ { "id": "437670", "author": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "body": "Hello,\r\n\r\nThanks for reporting this. Do you experience this in all devices? Please let us know and share us your detail environment information.\r\n\r\n", "updateAuthor": { "name": "mrahman", "key": "mrahman", "displayName": "Mostafizur Rahman", "active": true, "timeZone": "Asia/Dhaka" }, "created": "2018-05-16T10:37:48.000+0000", "updated": "2018-05-16T10:37:48.000+0000" }, { "id": "437677", "author": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "body": "I cannot test it on all devices due to unavailability. However I tested it only on iPhone 5s simulator on iOS 11.3 version. I am going to test it on a real iOS device tomorrow but even it should not behave improper on simulator as it never had earlier.", "updateAuthor": { "name": "prashant_saini", "key": "prashant_saini", "displayName": "Prashant Saini", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2018-05-16T13:43:12.000+0000", "updated": "2018-05-16T13:43:12.000+0000" }, { "id": "437692", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Hey there! This is a duplicate of TIMOB-25336, unfortunately a known Apple iOS bug.", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2018-05-16T15:15:48.000+0000", "updated": "2018-05-16T15:15:48.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }