<div dir="ltr">I'm able to capture the screenshot of a web activity by making use of <a href="http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebView.html#webkit-web-view-get-snapshot">http://webkitgtk.org/reference/webkit2gtk/stable/WebKitWebView.html#webkit-web-view-get-snapshot</a>.<div>
(The image quality seems to be pretty good. In fact, way better than the current preview screenshots in python activities)</div><div><br><div>I make those calls here, <a href="https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity/webactivity.py">https://github.com/sugarlabs/sugar-toolkit-gtk3/blob/master/src/sugar3/activity/webactivity.py</a><br>
<div><br></div><div><br></div><div>The question is, do we need to pass it(base64 encoded image) to the js api?</div><div><br></div><div>Or would it suffice to just add it to the datastore object on the shell side (how)?</div>
<div> <br></div></div></div></div>