Welcome to WebmasterWorld Guest from

Forum Moderators: bakedjake

Message Too Old, No Replies

taking thumbshots

problems with firefox

2:49 pm on Sep 8, 2008 (gmt 0)

New User

5+ Year Member

joined:July 26, 2008
votes: 0


I know there are lots of tutorials < urls removed > on that but I really got stuck.

I'm on ubuntu dapper. I have installed XVFB, firefox, imagemagick.

Here's a little bash script I run as root:

Xvfb :1 -screen 0 1024x768x24 &
DISPLAY=:1 firefox http://www.google.pl -silent -nosplash -fullscreen &
sleep 15
DISPLAY=:1 import -window root captured.jpg
convert captured.jpg -crop 950x612+5+94 +repage resized.jpg
convert resized.jpg -resize 200 resized.jpg
convert resized.jpg -frame 6x6+2+2 -quality 60 +profile "*" resized.jpg
mv resized.jpg /home/anotherplace/thumb.jpg
kill `ps -ef &#166; grep firefox &#166; grep -v grep &#166; awk '{print $2}'`
kill `ps -ef &#166; grep Xvfb &#166; grep -v grep &#166; awk '{print $2}'`

Important are the first 5 lines.

When I run the script I got the following message:

./test.sh: line 12: 4954 Terminated DISPLAY=:1 firefox http://www.google.pl
FreeFontPath: FPE "/usr/share/X11/fonts/misc/" refcount is 2, should be 1; fixing.

Can anyone help?

[edited by: tedster at 9:58 pm (utc) on Sep. 8, 2008]