Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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' \
    --out=STACKOVERFLOW_1.png
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' \
    --out=STACKOVERFLOW_2.png

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.

1 Answer 1

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

 
discard

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.