webpage-previewdeprecated

Takes a URL to a page and renders preview images of different sizes using the PhantomJS rendering engine

Usage no npm install needed!

<script type="module">
  import webpagePreview from 'https://cdn.skypack.dev/webpage-preview';
</script>

README

Webpage Preview

This is a Node.js module which takes a URL to a page and renders preview images of different sizes using the PhantomJS rendering engine.

Example usage:

webpagePreview.generatePreview('http://www.google.com/', 'google', APP_ROOT + '/public/previews', null, null, function(error, sizePaths) {
    if (error) {
        console.log(error);
    }
    else {
        console.log(sizePaths);
    }
});