weld-io / screenshooter

Generates a screenshot of any web page - as API or command line.

Home Page:http://weld-io.github.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Screenshooter

Generates a screenshot of any web page - as API or command line. Powered by Puppeteer.

Made by the team at Weld (www.weld.io), the code-free app and web creation tool:

Weld

Screenshot

Screenshooter

How to run it

  1. Install dependencies: yarn
  2. Start Screenshooter with yarn start

Codeship build status

How to use it

Browser: Open your favorite browser and take a screenshot like this: http://localhost:1337/http://ljugare.com

Embed a screenshot directly into an HTML img tag:

<img src="http://localhost:1337/http://www.google.com" alt="Google’s website">

Parameters

E.g. http://localhost:1337/http://ljugare.com?imageFormat=png

  • imageFormat: (default: 'jpg')
  • imageWidth: (default: 240)
  • imageHeight: (default: 240)
  • browserWidth: (default: 1024)
  • browserHeight: (default: 1024)

Command line

node shoot.js http://ljugare.com myimage.jpg imageWidth=500 imageHeight=400

About

Generates a screenshot of any web page - as API or command line.

http://weld-io.github.io

License:MIT License


Languages

Language:JavaScript 100.0%