{ "id": "86268", "key": "TIMOB-7586", "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": "12097", "description": "", "name": "Sprint 2012-05", "archived": true, "released": true, "releaseDate": "2012-03-11" }, { "id": "12593", "name": "Release 2.0.0", "archived": false, "released": true, "releaseDate": "2012-03-30" } ], "resolution": { "id": "1", "description": "A fix for this issue is checked into the tree and tested.", "name": "Fixed" }, "resolutiondate": "2012-03-08T14:34:00.000+0000", "created": "2012-02-09T10:41:56.000+0000", "priority": { "name": "High", "id": "2" }, "labels": [ "module_media", "qe-testadded" ], "versions": [], "issuelinks": [ { "id": "15588", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "outwardIssue": { "id": "82725", "key": "TIMOB-7499", "fields": { "summary": "Android: UI.View - toImage method returns transparent backgroundImage as fully opaque", "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 } } } }, { "id": "15584", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "87496", "key": "TIMOB-7912", "fields": { "summary": "iOS: Make TiBlob mimeType property changeable and save image blobs in a format (png/jpeg) according to set mime type", "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": "Low", "id": "4" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } }, { "id": "15586", "type": { "id": "10003", "name": "Relates", "inward": "relates to", "outward": "relates to" }, "inwardIssue": { "id": "77423", "key": "TIMOB-4594", "fields": { "summary": "iPhone: Save image as PNG of an ImageView", "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": "Trivial", "id": "5" }, "issuetype": { "id": "2", "description": "A new feature of the product, which has yet to be developed.", "name": "New Feature", "subtask": false } } } } ], "assignee": { "name": "mstepanov", "key": "mstepanov", "displayName": "Max Stepanov", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2012-07-05T15:16:27.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": "h2. Problem\r\nSaving an image to the filesystem using toImage() method, does not keep the transparent property of the image\r\n\r\nh2. Steps to reproduce\r\nSee attached code\r\n{code:lang=javascript|title=app.js}\r\nvar window = Ti.UI.createWindow({\r\n backgroundColor:'#ff0'\r\n});\r\n\r\nvar view = Ti.UI.createImageView({\r\n image:'KS_nav_ui.png',\r\n// var view = Ti.UI.createView({\r\n backgroundColor:'transparent',\r\n borderWidth:2,\r\n borderColor:'#f00',\r\n width:100,\r\n height:100,\r\n top:10\r\n});\r\n\r\nwindow.add(view);\r\n\r\nvar image = Ti.Filesystem.getFile(Ti.Filesystem.applicationDataDirectory, 'tst.png');\r\nimage.write(view.toImage());\r\n\r\nvar img = Ti.UI.createImageView({\r\n width:200,\r\n height:200,\r\n bottom:10,\r\n image:image.nativePath\r\n});\r\n\r\nwindow.add(img);\r\nwindow.open();\r\n{code}\r\n\r\nh2. Link\r\nTicket : http://support-admin.appcelerator.com/display/APP-785915", "attachment": [], "flagged": false, "summary": "iOS: image saved to filesystem using toImage() loses it's transparency", "creator": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "subtasks": [], "reporter": { "name": "fcasali", "key": "fcasali", "displayName": "Federico Casali", "active": true, "timeZone": "America/Los_Angeles" }, "environment": "TiSDK all versions\r\niOS all versions", "comment": { "comments": [ { "id": "182596", "author": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "body": "I'm thinking on 2 cases:\r\n\r\n1. The image is saved jpg as the background color goes always white.\r\n2. It can be fixed as I specified in the ticket by altering the write method in ToBlob.m", "updateAuthor": { "name": "rborn", "key": "rborn", "displayName": "Dan Tamas", "active": true, "timeZone": "Europe/Berlin" }, "created": "2012-02-09T10:59:33.000+0000", "updated": "2012-02-09T10:59:33.000+0000" }, { "id": "186724", "author": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing bug. Verified fix on:\r\n\r\nSDK build: 2.0.0.v20120315140247\r\nTitanium Studio, build: 2.0.0.201203142055\r\nxcode: 4.2\r\nDevice: iphone 4s (5.0.1)", "updateAuthor": { "name": "wluu", "key": "wluu", "displayName": "Wilson Luu", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2012-03-15T16:11:54.000+0000", "updated": "2012-03-15T16:11:54.000+0000" } ], "maxResults": 3, "total": 3, "startAt": 0 } } }