Thumbnail for a webpage

My colegue bl8cki is real fan of making screenshots from web browsers. Those days he tries the python solution. And today he surprised all with one very nice firefox plugin

With this plugin you can use firefox with some command line parameters to make screenshots.

Here is how we will use it

  1. start the xvfb
    mkdir /tmp/tmpfbdir
    Xvfb :1 -ac -screen 0 1600x1200x24  -fbdir /tmp/tmpfbdir

  2. run the firefox
    firefox-2 --display=:1 --no-xshm -height 1024 -width 768 -savepng

Windows solutions h


Multiplatform – I cant manage to compile it:



Another Linux/Ubuntu way:

aptitude install xvfb  xfs xfonts-scalable xfonts-100dpi libgl1-mesa-dri  subversion libqt4-webkit libqt4-dev g++
svn co
cd cutycapt/CutyCapt
xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url= --out=example.png
xvfb-run --server-args="-screen 0, 1024x768x24" ./CutyCapt --url= --out=example.html --out-format=html


  1. Web requests. From here you can request screenshots for your webpages:

  2. Hello,
    I was wondering, how can i make a php script that will run this command on my server so that i can acces apage on the brower, pass the url i wanna take the screenshot at and make it.


  3. you can run CutyCapt in php without any problem it is the most easy way to do it

    From 1200 websites I have noticed that each solution has blocked or generated empty thmbnail at least once.

    If you want to use it for real you have to use some commersial product :( sorry for saying it.

    I am currently stick on one comersial firefox plugin running in framebuffer. The plugin is not hacked but we have to make a lot of coding around the capturing to save our thumbnails in the way we want.

  4. What a great script. I have tried this and it works really good on my ubuntu jaunty… However there are some issues i encountered.
    1. Not able to capture flash content.
    2. Is the a way to capture long urls? like . i keep getting errors trying to capture thumbnail from these urls.

    Hope to get a response. Thanks again guys

Comments are closed.

© 2024 Gudasoft

Theme by Anders NorénUp ↑