[Sugar-devel] Preview field in web activities
Suraj K S
suraj.gillespie at gmail.com
Mon Sep 9 05:21:08 EDT 2013
I'm able to capture the screen shot of the activity using
http://html2canvas.hertzen.com/
It captures the screenshot and returns a canvas.
Now to convert it to a png image I'm using:
var previewImage = canvas.toDataURL("image/png;base64");
The problem with this is that it throws a
SECURITY_ERR: DOM Exception 18
After reading a bit on this error, got to know that when the canvas has an
element whose origin-clean flag is set to false, it would generate this
error.
Not able to understand why exactly this is happening in Sugar though.
Is there a way around this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sugarlabs.org/archive/sugar-devel/attachments/20130909/9d11eb91/attachment.html>
More information about the Sugar-devel
mailing list