{ "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,

\n

I 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.

\n

So, 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.

\n

I 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!

\n

Not bad, for a non-ObjectiveC programmer, if I do say so myself!\n:))

\n

Here it is:

\n

http://developer.appcelerator.com/helpdesk/view/48581

\n

Hope this helps.
\nI'm already finding it very useful. ;)

\n

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.

\n

Cheers,
\nKosso

{html}", "attachment": [], "flagged": false, "summary": "takeScreenshot supporting retina disaplay (with an imageAsCropped bonus!)", "creator": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "subtasks": [], "reporter": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "environment": null, "comment": { "comments": [ { "id": "127332", "author": { "name": "panman", "key": "panman", "displayName": "PanMan", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Would you be so kind to post the code somewhere public?
\nThanks in advance!

{html}", "updateAuthor": { "name": "panman", "key": "panman", "displayName": "PanMan", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:08:52.000+0000", "updated": "2011-04-15T03:08:52.000+0000" }, { "id": "127333", "author": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "body": "{html}

Sure. Here you go: http://gist.github.com/621367

{html}", "updateAuthor": { "name": "kosso", "key": "kosso", "displayName": "kosso", "active": true, "timeZone": "Europe/London" }, "created": "2011-04-15T03:08:52.000+0000", "updated": "2011-04-15T03:08:52.000+0000" } ], "maxResults": 2, "total": 2, "startAt": 0 } } }