Have an account? Sign in
Login  Register  Facebook
PHP web Screenshoot generator
Hello there!
I'm looking for a script that generates website screenshoots. I want to use a script on my server bcz, i think, it will work faster than use services like webshotspro.com or any other, and have no restriction on size.
I need a script that can cache the screenshoot and refresh it every 2 weeks for example.
Hope that you can help me on this.
Thank you in advance!
Started: September 19, 2011 Latest Activity: June 13, 2018 website screenshoot generator script php
5 Answers
Isotretinoin Izotek Baltimore cheap cialis online Tadalis Sx Soft Effet Where To Buy Acticin Amoxicillin Caps

Posted: Ellgaibra
In: June 13, 2018

Thanks to everyone for the reply. What i need is a simple script to do this, but, after i have read your posts and followed your links i saw that is too complicated and i need only to display the screenshot of 10-15 websites. All this job that is needed does not honor my needs :P
I will find a screenshot provider with screensize modified possibility or a simple php script that can do this.

Thanks again for your help!

Posted: Kleidi
In: September 19, 2011

try:http://www.websnapr.com
September 19, 2011

It's in Python, but going over the documentation and code you can see exactly how this is done. If you can run python, then it's a ready-made solution for you:

browsershots

Note that everything can run on one machine for one platform, or one machine with virtual machines running the other platforms.

Free, open source, scroll to bottom of page for links to documentation, source code, and other information.

See khtmld(aemon) on *nx. See Url2Jpg for Windows but since it is dotNet app you should also chek Url2Bmp

Both are console tools that u can utilise from your web app to get the screenshot.

There are also web services that offer it. Check this out for example.

This link is useful to.

Posted: is_set
In: September 19, 2011

Sure you can, but you'll need to render the page with something. If you really want to only use php, i suggest you HTMLTOPS, wich render the page and output it in a ps file (ghostscript), then, convert it in a .jpg, .png, .pdf.. can be little slower with complex pages (and dont support all the CSS).

Else, you can use wkhtmltopdf to output a html page in pdf, jpg, whaterver.. Accept CSS2.0, use the webkit (safari's wrapper) to render the page.. so should be fine. You have to install it on your server, as well..

i noticed now that the wkhtmltopdf team is working on another project: wkhtmltoimage, that gives you the jpg directly

Posted: Go
In: September 19, 2011

You could use system to execute this but you'd need root and have an xwindow session running
Don't forget that PHP is run on the server. A webpage is rendered by the browser on the client. So any PHP script doing this would just be generating some javascript or something clientside to do it.

Posted: MacOS
In: September 19, 2011

Your Answer

xDo you want to answer this question? Please login or create an account to post your answer