Skip to content
This repository has been archived by the owner on Nov 4, 2022. It is now read-only.
/ ScreenShotServer Public archive

A PhantomJS Web Server that takes a screenshot from a requested Web page.

Notifications You must be signed in to change notification settings

arquivo/ScreenShotServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 

Repository files navigation

Web Server that takes Screenshots and returns a .png image to the browser.

Note: you need to install PhantomJS version 1.98 or below

Running ScreenShotServer Web server

Usage 1:

phantomjs ScreenShotServer.js < portnumber >

Usage 2:

phantomjs ScreenShotServer.js < portnumber > < rootDomain >

Example 1:

phantomjs ScreenShotServer.js 8181

Example 2:

phantomjs ScreenShotServer.js 8181 google.pt

Requiring a Screenshot

Example: http://localhost:8181/?url=http://google.pt

Usage: http://localhost:/?url= < urlEncoded >

urlEncoded - The url to take a screenshot should be escaped using the javascript function encodeURIComponent

Optional parameters:

  • width - width in pixels of the screenshot rendering
  • height - height in pixels of the screenshot rendering

Example: http://localhost:8181/?url=http://google.pt&width=1920&height=1080

About

A PhantomJS Web Server that takes a screenshot from a requested Web page.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages