{ "id": "63948", "key": "TIMOB-3316", "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": [], "resolution": { "id": "2", "description": "The problem described is an issue which will never be fixed.", "name": "Won't Fix" }, "resolutiondate": "2017-07-19T19:04:52.000+0000", "created": "2011-04-15T03:41:59.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "photo", "upload" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-19T19:04:52.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": "{html}

There doesn't seem to be a way to compress an image or lower its\nquality before posting it to a remote server. The images taken by\nthe iphone 4 are incredibly big and need to be compressed. In Obj-C\nI would just do the following:

\n

UIImageJPEGRepresentation(photo, 0.3);

\n

We need something similar for titanium. This is a big\nshowstopper for anyone trying to have upload image capabilities in\ntheir app. Very surprised no one else has escalated this issue...or\nis their a workaround available?

{html}", "attachment": [], "flagged": false, "summary": "No way to compress image before posting?", "creator": { "name": "brian", "key": "brian", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "brian", "key": "brian", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "130520", "author": { "name": "brian", "key": "brian", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Looks like you have modify the Titanium source code to do\nthis...which really isn't an acceptable solution. See this\npost:

\n

\nhttp://developer.appcelerator.com/question/56181/image-compression

{html}", "updateAuthor": { "name": "brian", "key": "brian", "displayName": "Brian", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:42:00.000+0000", "updated": "2011-04-15T03:42:00.000+0000" }, { "id": "177502", "author": { "name": "pbreit", "key": "pbreit", "displayName": "pbreitenbach@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Uploading photos is extremely common. This would be a much better way to do it than some of the solutions I've seen. Please fix!", "updateAuthor": { "name": "pbreit", "key": "pbreit", "displayName": "pbreitenbach@gmail.com", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-12-28T16:32:09.000+0000", "updated": "2011-12-28T16:32:09.000+0000" }, { "id": "424393", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-19T19:04:52.000+0000", "updated": "2017-07-19T19:04:52.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }