views:

145

answers:

2

I'd like to automate a 'screenshot' of arbitary URL's using a Linux build that doesn't have X installed. There appears to be some (costly) web services to do this, but I specifically want something I can do locally. Tried imagemagick without much success, though Mozilla used to have a command line option to do it?

+2  A: 

The CutyCapt snapshot utility sounds perfect for this job.

It uses WebKit, which does require X (like most graphical browsers). How about using Xvfb, which is a lightweight X server designed for use in command line environments? It does not require any input devices or video output, as it does everything in memory.

From the website:

Using CutyCapt without X server

You cannot use CutyCapt without an X server, but you can use e.g. Xvfb as light-weight server if you are not running an interactive graphical desktop environment. For example, you could use:

% xvfb-run --server-args="-screen 0,1024x768x24" ./CutyCapt --url=... --out=...

rjh
A: 

Hi, I've found cutycapt but I can't make it work on a CentOS (at the compilation it says it doesn't have QtWebKIt) I tried to install qtWebkit manualy but didn't work... Have you got an idea?

lahabana
StackOverflow is not a forum. Ask your own question instead of posting an "answer" which is not.
atzz