{ "id": "62925", "key": "TIMOB-2293", "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": [ { "id": "11225", "name": "Release 1.5.0", "archived": true, "released": true, "releaseDate": "2010-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2011-04-17T01:58:40.000+0000", "created": "2011-04-15T03:15:51.000+0000", "priority": { "name": "Medium", "id": "3" }, "labels": [ "4.2", "camera", "image", "ios", "nojit" ], "versions": [], "issuelinks": [], "assignee": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2011-04-17T01:58:40.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}

you'll need xcode 3.5.4,iOSsdk4.2 and itunes 10.1, the no jit\nTiJsCore

\n

1.take a couple shots with the camera in portrait\norientation
\n2.Phone>Save to gallery>Background image
\n3.select an image
\n4.note its appearance on the screen

\n

results, the image was rotated 90° and was scaled/stretched.\nnot seen with same app on 4.1

{html}", "attachment": [], "flagged": false, "summary": "iOS, 4.2 - Image being unexpectedly rotated and scaled on background image test case (4.2 only) ", "creator": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "environment": null, "comment": { "comments": [ { "id": "128057", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

This one's odd. I can recreate it with the images on the camera\nroll. But the new images I'm taking do not suffer this. We'll need\nto look this one over.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:15:51.000+0000", "updated": "2011-04-15T03:15:51.000+0000" }, { "id": "128058", "author": { "name": "dcpedit", "key": "dcpedit", "displayName": "dcpedit", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Here's some code that I used to reproduce the issue:

\n
\n\n  Ti.Media.showCamera({\n    success:function(event) {\n      var image = event.media;\n      if(event.mediaType == Ti.Media.MEDIA_TYPE_PHOTO) {\n        var f = Ti.Filesystem.getFile(Ti.Filesystem.tempDirectory, 'tmpimg.png');\n        f.write(image);\n        var view = Ti.UI.createView({\n          backgroundImage: Ti.Filesystem.tempDirectory + 'tmpimg.png'\n        });\n        Ti.UI.currentWindow.add(view);\n      }\n    },\n    saveToPhotoGallery: true,\n    mediaTypes: [Ti.Media.MEDIA_TYPE_PHOTO]\n  });\n
{html}", "updateAuthor": { "name": "dcpedit", "key": "dcpedit", "displayName": "dcpedit", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:15:52.000+0000", "updated": "2011-04-15T03:15:52.000+0000" }, { "id": "128059", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Note to self: This is because of the exif image orientation. On\nthe images that work fine, the orientation is 1. On the images that\nare distorted, the orientation was 6.

\n

http://sylvana.net/jpegcrop/exif_orientation.html

\n

Look into if we rotate BackgroundImage to compensate, and if we\ndon't, we should.

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:15:52.000+0000", "updated": "2011-04-15T03:15:52.000+0000" }, { "id": "128060", "author": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

Darn bot not working.

\n

[#2293 state:fixed-in-qa] When a bg image's\nimageOrientation is not 'up', the image is rotated properly

\n

\nhttps://github.com/appcelerator/titanium_mobile/commit/66a7f20ae10a...

{html}", "updateAuthor": { "name": "blainhamon", "key": "blainhamon", "displayName": "Blain Hamon", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:15:52.000+0000", "updated": "2011-04-15T03:15:52.000+0000" }, { "id": "128061", "author": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "body": "{html}

closing against 1.5.0.fb4b340 ipod 4gt

{html}", "updateAuthor": { "name": "thomashuelbert", "key": "thomashuelbert", "displayName": "Thomas Huelbert", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2011-04-15T03:15:53.000+0000", "updated": "2011-04-15T03:15:53.000+0000" } ], "maxResults": 5, "total": 5, "startAt": 0 } } }