HTMLtoIMAGE_v100

Bob Sneidar bobsneidar at iotecdigital.com
Mon Dec 17 11:30:35 EST 2018


I tried this on a copier web portal. It produced a 0kbyte file with no image. 

Bob S


> On Dec 17, 2018, at 08:19 , hh via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> HTMLtoIMAGE
> 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 have a height of several thousands pixels.
> 
> Download from "Sample Stacks" or
> http://livecodeshare.runrev.com/stack/919/
> 
> The stack is based on the library from
> https://html2canvas.hertzen.com (MIT licensed).
> 
> This javaScript library takes "screenshots" of webpages based on
> the DOM, and as such may not be 100% accurate to the real
> representation as it does not make an actual screenshot, but
> builds the screenshot based on the information available on the
> page.
> Then it saves the data to a canvas. [(With movies) "Overlayed"
> pages as livecode.com are only partially saved, just try.]
> 
> We don't display this HTML5-canvas in a browser but catch with
> a javascriptHandler the imagedata and save it to a local image.
> You can set options:
> • the image format: JPEG with quality level or PNG,
> • an image scale (percentage).
> 
> The javaScript library is included in the stack (please watch
> its license).
> _______________________________________________
> 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