{ "id": "128095", "key": "TIMOB-16690", "fields": { "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "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": [], "resolution": { "id": "10000", "description": "", "name": "Done" }, "resolutiondate": "2016-12-27T13:43:52.000+0000", "created": "2014-03-25T03:13:46.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "APP-751978", "supportTeam" ], "versions": [], "issuelinks": [ { "id": "36036", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "122320", "key": "TIMOB-15697", "fields": { "summary": "iOS: iPhone app closing due to low memory when trying to take a picture with camera", "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": "Low", "id": "4" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-03-24T18:51: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.Feature Request\r\nRight now, Ti developer is forced to transform and size the (very large) image blob in JS. Any bit of memory can be saved when using the Camera API would lead to a reduction of the frequency of memory-related crashes / kills by the iOS.\r\n\r\nPlease see the _stackoverflow_ link: http://stackoverflow.com/questions/19027869/ios-app-crashes-when-taking-a-photo (the code to do the transform in a background thread).", "attachment": [], "flagged": false, "summary": "iOS: Add ability to provide the size parameters to TiMedia Camera API so the image could be sized natively", "creator": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "egomez", "key": "egomez", "displayName": "Eduardo Gomez", "active": false, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "302515", "author": { "name": "tcrist", "key": "tcrist", "displayName": "Travis Crist", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Clarification for this request as requested by Dan. \r\nh5. New Feature - Resize the Image when its returned from the Titanium Camera Object: \r\nIn the answer to the stack overflow question they mention using the imagePickerController:didFinishPickingMediaWithInfo to resize the image appropriately when it is returned from the camera. We would like to be able to pass in a height and width to the Titanium Camera object and have the Titanium Camera logic resize the image with the imagePickerController:didFinishPickingMediaWithInfo on a background thread. When performing this resize the image data should not be stored to the disk. The idea is to perform this in native iOS instead of resizing it in javascript as our team does now which should save some memory and improve the stability of the Titanium Camera Object on iOS. \r\nh6. Acceptance: \r\n1. The Titanium Camera Object can be passed a height and/or width property. \r\n2. Before the Titanium Camera Object passes the taken image back to the application it uses the imagePickerController:didFinishPickingMediaWithInfo method to resize the image to the passed in width and/or height properties in a background thread. \r\n3. If only a width or height is passed in the other is automatically calculated, it might actually need to be designed to only support a height or width since the aspect ratio needs to be preserved. \r\n4. The images aspect ratio is preserved. \r\n5. The image is never written to the iOS devices disk. \r\n", "updateAuthor": { "name": "tcrist", "key": "tcrist", "displayName": "Travis Crist", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2014-04-25T15:47:03.000+0000", "updated": "2014-04-29T20:21:03.000+0000" }, { "id": "403873", "author": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "body": "Resolving this issue, since the functionality Vishal suggested does work great", "updateAuthor": { "name": "hknoechel", "key": "hansknoechel", "displayName": "Hans Knöchel", "active": true, "timeZone": "Europe/Berlin" }, "created": "2016-12-27T13:43:52.000+0000", "updated": "2016-12-27T13:43:52.000+0000" }, { "id": "415702", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket with reference to the above comment from Hans.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-03-24T18:51:51.000+0000", "updated": "2017-03-24T18:51:51.000+0000" } ], "maxResults": 10, "total": 10, "startAt": 0 } } }