agentsib / siteshot
Screenshot sites tool
Installs: 20
Dependents: 0
Suggesters: 0
Security: 0
Stars: 19
Watchers: 4
Forks: 6
Open Issues: 0
Type:project
Requires
- h4cc/wkhtmltoimage-amd64: ^0.12.3
- imagine/imagine: ^0.6.3
- silex/silex: ^2.0
- symfony/process: ^3.2
This package is auto-updated.
Last update: 2024-10-28 09:32:11 UTC
README
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
orresize
- sizes - screenshot size (for example 400 or 400x500)
- fwidth - for
corner
- crop upper left corner box width and height, forresize
- max width - format -
png
orjpg
- 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