Problem Description
In a webview, I'm loading jquery and some other plugins to handle SVG objects.
The JS code then generate the resulting SVG content.
Having 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
content properly.
Then, the user tries to do a webview.toImage() in order to get the png in the camera roll.
Actual results
The image is blank (white).
Expected results
getting the webview's content in the image.
Test Code
The bug now comes when I'm trying to save that web view to the camera roll:
var svgFileContent = svgFile.read();
var svgWebview = Ti.UI.createWebView({
data: svgFileContent,
size: {width: 600, height: 600}
});
Ti.Media.saveToPhotoGallery(svgWebview.toImage());
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.