Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a problem using CutyCapt to create images rendered for a particular screen size.

For example, if I do these:

xvfb-run --server-args="-screen 0, 800x600x24" \
  ~/bin/CutyCapt/CutyCapt --url='http://stackoverflow.com/search?page=2&tab=relevance&q=cutycapt%20xvfb' \
xvfb-run --server-args="-screen 0, 800x600x24" \
  ~/bin/CutyCapt/CutyCapt --url='http://stackoverflow.com/questions/65078/what-is-the-best-way-to-create-a-web-page-thumbnail' \

I get images of sizes:

STACKOVERFLOW_1.png : 975x2611
STACKOVERFLOW_2.png : 975x2226

I believe any stackoverflow page will be of a width of 975 pixels. This is not what I asked (w=600).

Is it possible to create images using CutyCapt with Xvfb that are rendered for a particular screen width?

PS: uname -a yields Linux yalabs-linux0.yandex.net 2.6.27-17-server #1 SMP Fri Mar 12 02:48:52 UTC 2010 x86_64 GNU/Linux

share|improve this question

migrated from stackoverflow.com Jun 2 '11 at 11:08

This question came from our site for professional and enthusiast programmers.

CutyCapt is working as designed. The size of the X screen is irrelevant (unless the site's stylesheet depends on it, which is a terrible but common idea). Stack Overflow renders for a fixed width, regardless of the browser window width, so you get an image of that width.

share|improve this answer
Many thanks. I've got a confirmation from "the" source that this is a desired behavior. Alas. But thanks for your help. – bzdjamboo Jun 17 '11 at 21:52
So this answer seems to be correct, why don't you accept it? – Dag Nov 26 '11 at 17:09
@Dag That user hasn't logged in in months. It's a lost cause. He won't see your nag. – Gilles Nov 26 '11 at 17:11

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.