{ "id": "87600", "key": "TIMOB-8371", "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-07-10T22:11:54.000+0000", "created": "2012-03-08T14:56:36.000+0000", "priority": { "name": "Low", "id": "4" }, "labels": [ "api" ], "versions": [], "issuelinks": [], "assignee": { "name": "emerriman", "key": "emerriman", "displayName": "Eric Merriman ", "active": true, "timeZone": "America/Los_Angeles" }, "updated": "2017-07-10T22:11:54.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": "h4. Problem Description\r\nIn a webview, I'm loading jquery and some other plugins to handle SVG objects.\r\nThe JS code then generate the resulting SVG content.\r\nHaving not found a way to create a web view from a string of SVG content, I'm saving the content to a temporary folder and then open that file in a Ti.Filesystem.file object then send that object to webview.data, this is working and the web view does display the SVG \r\ncontent properly.\r\n\r\nThen, the user tries to do a webview.toImage() in order to get the png in the camera roll. \r\n\r\nh4. Actual results\r\nThe image is blank (white).\r\n\r\nh4. Expected results\r\ngetting the webview's content in the image. \r\n\r\nh4. Test Code\r\nThe bug now comes when I'm trying to save that web view to the camera roll:\r\n{code}\r\nvar svgFileContent = svgFile.read();\r\n\t\t\t\t\t\r\nvar svgWebview = Ti.UI.createWebView({\r\n data: svgFileContent,\r\n size: {width: 600, height: 600}\r\n});\r\n\r\nTi.Media.saveToPhotoGallery(svgWebview.toImage());\r\n{code}\r\n\r\n", "attachment": [], "flagged": false, "summary": "Saving SVG's web view to camera roll results in blank image", "creator": { "name": "quochuy", "key": "quochuy", "displayName": "Quoc Huy", "active": true, "timeZone": "Australia/Sydney" }, "subtasks": [], "reporter": { "name": "quochuy", "key": "quochuy", "displayName": "Quoc Huy", "active": true, "timeZone": "Australia/Sydney" }, "environment": "Mac OS X Lion 10.7.3\r\nXcode 4.3\r\nSDK 1.8.2", "comment": { "comments": [ { "id": "423823", "author": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "body": "Closing ticket due to time passed and lack of progress for a number of years. Please open a new ticket if there are any problems.", "updateAuthor": { "name": "lmorris", "key": "lmorris", "displayName": "Lee Morris", "active": false, "timeZone": "America/Los_Angeles" }, "created": "2017-07-10T22:11:54.000+0000", "updated": "2017-07-10T22:11:54.000+0000" } ], "maxResults": 1, "total": 1, "startAt": 0 } } }