{ "id": "62673", "key": "TIMOB-2041", "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": "7", "description": "", "name": "Invalid" }, "resolutiondate": "2017-06-05T20:22:35.000+0000", "created": "2011-04-15T03:08:51.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "blob", "cropped", "image", "ios", "iphone", "retina", "screenshot" ], "versions": [], "issuelinks": [], "assignee": { "name": "ingo", "key": "ingo", "displayName": "Ingo Muschenetz", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-06-05T20:22:35.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}
Hi,
\nI had asked a question on the helpdesk regarding the screenshot\nfunction (and also the toImage function) since I found that it\ndidn't save images wider than 320 pixels. And since the iPhone4 is\n640 x 960 I wanted a larger screenshot.
\nSo, after some digging, searching and staring at code, I managed\nto update the MediaModule.m file to get it working as I needed it\nto.
\nI had also been asking for a function to crop an image(blob).\n(So I could kind of replicate the toImage method on my new larger\nimage) Again, more staring at code (and a beer) and I've even\nmanaged to make a useful function to do it!
\nNot bad, for a non-ObjectiveC programmer, if I do say so myself!\n:))
\nHere it is:
\nhttp://developer.appcelerator.com/helpdesk/view/48581
\nHope this helps.
\nI'm already finding it very useful. ;)
So, this isn't really a support ticket, but I think it would be\ncool to see it do in to Titanium in the future.
\nCheers,
\nKosso
Would you be so kind to post the code somewhere public?
\nThanks in advance!
Sure. Here you go: http://gist.github.com/621367