{ "id": "82725", "key": "TIMOB-7499", "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": "14064", "description": "Sprint 2012-17 Core", "name": "Sprint 2012-17 Core", "archived": true, "released": true, "releaseDate": "2012-08-27" }, { "id": "13505", "description": "Release 3.0.0", "name": "Release 3.0.0", "archived": true, "released": true, "releaseDate": "2012-12-14" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-09-13T02:48:12.000+0000", "created": "2011-11-14T18:27:34.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "core", "module_view", "parity", "qe-review", "qe-testadded" ], "versions": [ { "id": "12677", "description": "Release 1.8 Service Pack 1", "name": "Release 1.8.1", "archived": true, "released": true, "releaseDate": "2012-01-31" } ], "issuelinks": [ { "id": "15588", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "86268", "key": "TIMOB-7586", "fields": { "summary": "iOS: image saved to filesystem using toImage() loses it's transparency", "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": "High", "id": "2" }, "issuetype": { "id": "1", "description": "A problem which impairs or prevents the functions of the product.", "name": "Bug", "subtask": false } } } } ], "assignee": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "updated": "2012-09-13T02:48:12.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": "10202", "name": "Android", "description": "Android Platform" } ], "description": "h2. Problem\r\n\r\nAlpha channel is black opaque when using {{toImage()}} when it should be transparent. Same behavior the view is set with {{backgroundColor: 'transparent'}}.\r\n\r\nThe background works as expected on iOS, ie it is transparent.\r\n\r\nh2. Test case\r\n\r\nSee attached screenshot for results.\r\n\r\n{code:lang=javascript|title=app.js}\r\nTi.UI.backgroundColor = 'yellow';\r\nvar win = Ti.UI.createWindow();\r\n\r\n// the same issue exists when using an imageView here rather than a View\r\nvar view = Ti.UI.createView({\r\n backgroundColor:'transparent',\r\n backgroundImage: 'alpha.png',\r\n top: 50,\r\n width: 300,\r\n height: 300\r\n});\r\nwin.add(view);\r\n\r\nvar blob = view.toImage();\r\nvar rendered = Ti.UI.createImageView({\r\n backgroundColor:'transparent',\r\n image: blob,\r\n top: 200,\r\n width: 300,\r\n height: 300\r\n});\r\n\r\nwin.add(rendered);\r\nwin.open();\r\n{code}\r\n\r\nh2. Discussions\r\n\r\nQ&A: [android - toimage no transparency|http://developer.appcelerator.com/question/127966/android---toimage-no-transparency]\r\n", "attachment": [ { "id": "24942", "filename": "alpha.png", "author": { "name": "brice.lechatellier@cbsinteractive.com", "key": "brice.lechatellier@cbsinteractive.com", "displayName": "Brice Lechatellier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T14:24:30.000+0000", "size": 4511, "mimeType": "image/png" }, { "id": "25434", "filename": "screenshot_485.png", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-02-01T12:22:34.000+0000", "size": 19010, "mimeType": "image/png" } ], "flagged": false, "summary": "Android: UI.View - toImage method returns transparent backgroundImage as fully opaque", "creator": { "name": "brice.lechatellier", "key": "brice.lechatellier", "displayName": "Brice Lechatellier", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "brice.lechatellier", "key": "brice.lechatellier", "displayName": "Brice Lechatellier", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "* Titanium Mobile 1.8.1, 1.7.5\r\n* Android 2.2\r\n* emulator\r\n", "comment": { "comments": [ { "id": "178095", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Brice\r\n\r\nSo that I may escalate this ticket, would you please provide the missing info to the environment field (in accordance with [JIRA Ticket Checklist|https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist]), and attach the {{alpha.png}} image?\r\n\r\nMany thanks", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-05T06:22:09.000+0000", "updated": "2012-01-05T06:22:39.000+0000" }, { "id": "178205", "author": { "name": "brice.lechatellier@cbsinteractive.com", "key": "brice.lechatellier@cbsinteractive.com", "displayName": "Brice Lechatellier", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Thanks Paul, the alpha.png image is attached. The Android SDK version is 2.3.4.", "updateAuthor": { "name": "brice.lechatellier@cbsinteractive.com", "key": "brice.lechatellier@cbsinteractive.com", "displayName": "Brice Lechatellier", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-01-05T14:26:50.000+0000", "updated": "2012-01-05T14:26:50.000+0000" }, { "id": "178215", "author": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "body": "Brice, I need to test this before moving it across. However, some suggestions:\r\n\r\n* have you tried this with 1.8.0.1? Is there any reason why you are not using this version?\r\n* with the {{view}} variable, rather than using a Titanium View object, try an imageView and with an {{image}} property rather than {{backgroundImage}}\r\n\r\nLet me know how you get on with this.\r\n\r\nCheers", "updateAuthor": { "name": "pdowsett", "key": "pdowsett", "displayName": "Paul Dowsett", "active": true, "timeZone": "Europe/London" }, "created": "2012-01-05T14:45:41.000+0000", "updated": "2012-01-05T14:45:41.000+0000" }, { "id": "180904", "author": { "name": "ssavic", "key": "ssavic", "displayName": "Sasa Savic", "active": true, "timeZone": "America/New_York" }, "body": "Any updates? any time frame as to when this will be resolved?", "updateAuthor": { "name": "ssavic", "key": "ssavic", "displayName": "Sasa Savic", "active": true, "timeZone": "America/New_York" }, "created": "2012-01-27T10:50:28.000+0000", "updated": "2012-01-27T10:50:28.000+0000" }, { "id": "194180", "author": { "name": "ssavic", "key": "ssavic", "displayName": "Sasa Savic", "active": true, "timeZone": "America/New_York" }, "body": "Can someone put a priority on this bug please; it has been opened up last november and still has not been fixed. I really need this to be fixed soon", "updateAuthor": { "name": "ssavic", "key": "ssavic", "displayName": "Sasa Savic", "active": true, "timeZone": "America/New_York" }, "created": "2012-05-08T14:19:44.000+0000", "updated": "2012-05-08T14:19:44.000+0000" }, { "id": "215109", "author": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "body": "PR opened: https://github.com/appcelerator/titanium_mobile/pull/2780", "updateAuthor": { "name": "opiecyrus", "key": "opiecyrus", "displayName": "Opie Cyrus", "active": true, "timeZone": "America/Chicago" }, "created": "2012-08-19T22:29:02.000+0000", "updated": "2012-08-19T22:29:02.000+0000" }, { "id": "216399", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Verified on:\r\nSDK:2.2.0.v20120827143312\r\nStudio:2.1.2.201208201549\r\nDevices: Android Emulator,LG-P970(v 2.2.2)\r\n\r\ntoImage method returns transparent backgroundImage as fully transparent.", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-08-28T03:09:56.000+0000", "updated": "2012-08-28T03:09:56.000+0000" }, { "id": "218784", "author": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "body": "Reopening to update labels", "updateAuthor": { "name": "amittal", "key": "amittal", "displayName": "Anshu Mittal", "active": true, "timeZone": "America/Los_Angeles" }, "created": "2012-09-13T02:47:34.000+0000", "updated": "2012-09-13T02:47:34.000+0000" } ], "maxResults": 8, "total": 8, "startAt": 0 } } }