<div dir="ltr">Probably the svg...<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 9 September 2013 15:52, Suraj K S <span dir="ltr"><<a href="mailto:suraj.gillespie@gmail.com" target="_blank">suraj.gillespie@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">canvas.toDataURL() throws the Security Exception in both paint-web and markdown activities.<div><br></div>
<div>I tried it on an earlier an activity which i made some time back,</div><div><a href="https://github.com/surajgillespie/myactivity" target="_blank">https://github.com/surajgillespie/myactivity</a><br>
</div><div>In this case it works fine.</div><div>I'm able to get the image in a base 64 encoded string.</div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">
On 9 September 2013 18:21, Daniel Narvaez <span dir="ltr"><<a href="mailto:dwnarvaez@gmail.com" target="_blank">dwnarvaez@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Did you try with a very simple page, just some text for example. From one ticket on their github it seems like it could depend on the content and there might be issues with svg.<br>

</div><div class="gmail_extra"><div><div>
<br><br><div class="gmail_quote">On 9 September 2013 14:49, Suraj K S <span dir="ltr"><<a href="mailto:suraj.gillespie@gmail.com" target="_blank">suraj.gillespie@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


<div dir="ltr">@Daniel, yes, I did download it locally.  <div><br></div><div>@Manuel, <span style="font-family:arial,sans-serif;font-size:13px">canvas.toDataURL() isn't generating any trouble in your activity.</span></div>



<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">Regarding the performance, it can match the quality of the preview image in python, if not better. Tested it for many pages, seems to render the preview image well enough.</font></div>


<div>
<div><br></div><div class="gmail_extra"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">



<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote"><div><div><div><br></div></div></div><div>Assuming we can get it to work, even if it's not great we could keep the JS implementation as a fallback for platforms that don't have a native implementation. <br>



</div>
</div></div></div>
</blockquote></div><br></div></div><div class="gmail_extra"><span style="font-family:arial,sans-serif">And yeah, I'll try getting this working asap. </span><br></div></div>
</blockquote></div><br><br clear="all"><br></div></div><span><font color="#888888">-- <br>Daniel Narvaez<br>
</font></span></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Daniel Narvaez<br>
</div>