All Projects → agentsib → siteshot-php

agentsib / siteshot-php

Licence: MIT License
Site shot example

Programming Languages

PHP
23972 projects - #3 most used programming language
HTML
75241 projects
ApacheConf
554 projects
shell
77523 projects

Docker Automated buil

Screenshot sites tool

Web service to generate images of websites. Written with Silex framework. Uses wkhtmltopdf.

Running

docker run -d -p 8080:80 -v /tmp/siteshot_cache:/var/www/shot/cache agentsib/siteshot:latest

Now try localhost:8080

Usage

http://localhost:8080/{mode}/{sizes}/{fwidth}/{format}/t{timeout}?{url}

  • mode - corner or resize
  • sizes - screenshot size (for example 400 or 400x500)
  • fwidth - for corner - crop upper left corner box width and height, for resize - max width
  • format - png or jpg
  • timeout - wait time after load page content (by default: 1). Usable for sites with flash. Example: t1 or t10
  • url - url for capture

Returns http status 404 if creating screenshot failed.


Examples

http://siteshot.dev/resize/800x600/400/png?http://google.com

http://siteshot.dev/resize/800x600/400/png/t5?http://speedtest.net

http://siteshot.dev/corner/800x600/400/png?http://vk.com

Development

Show symfony errors:

docker run -ti -p 8080:80 -e DEBUG=1 -v /path/to/siteshot-php:/var/www/shot agentsib/siteshot:latest
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].