GithubHelp home page GithubHelp logo

smockensturm / screen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from microweber-dev/screen

0.0 1.0 0.0 45.86 MB

Web site screenshot tool based on PHP and PhantomJS

License: Other

PHP 100.00%

screen's Introduction

Screen

Web site screenshot tool based on PHP and PhantomJS

You can use it to take screenshots for testing or monitoring service

Usage

  • Upload to your webserver
  • Make the bin executable chmod +x /var/www/html/screen/bin/phantomjs
  • Make your folder writable
  • Open your browser to index.php

API

You can directly render the taken screen-shot with the shot.php file

You can render any link by passing it as url parameter

shot.php?url=google.com

You can specify height and width: shot.php?url=google.com&w=300&h=100

If you want to crop/clip the screen shot, you can do so like this: shot.php?url=google.com&w=800&h=600&clipw=800&cliph=600

To download the image, just go to shot.php?url=google.com&download=true

Dependencies

  • FontConfig must be installed - apt-get/yum install fontconfig
  • FreeType is also required - apt-get/yum install freetype*

Thanks

Thanks to the PhantomJS guys for creating their awesome WebKit scripting interface.

This tool was originally created to take screenshots for Microweber

screen's People

Contributors

peter-mw avatar lahaxearnaud avatar noahcoffey avatar sam0hack avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.