BrowserSnapshot_v001

Tom Glod tom at makeshyft.com
Mon Dec 17 22:39:03 EST 2018


HH....you are a rockstar!!!!.  I literally had this functionality on my to
do list for a GPL project (going up on github soon).  I am assuming that is
the license of your code?

Thank you for saving me the time of doing that x 10



On Mon, Dec 17, 2018 at 6:59 PM hh via use-livecode <
use-livecode at lists.runrev.com> wrote:

> BrowserSnapshot makes an image of the *whole* HTML content of a browser
> widget
> (while waiting for printToPdf from the browser widget in 9.x).
> The image may get a height of several thousands pixels.
>
> ** It works currently only for (horizontally) responsive HTML pages, that
> is if
> the widget doesn't need a horizontal scrollbar. **
>
> This is a pure LC Script solution: The widget is scrolled down appropriate
> portions of the whole HTML page and a snapshot is made. Then the snapshots
> are merged into ONE image of format PNG.
>
> Download BrowserSnapshot from "Sample Stacks" or
> http://livecodeshare.runrev.com/stack/920/
>
> Probably this pure LC Script version is doing better than creating a
> "snapshot"
> from the DOM using a HTML5 canvas (HTMLtoIMAGE_v100)
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the Use-livecode mailing list