Forum Moderators: bakedjake
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:
#!/bin/bash
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 ¦ grep firefox ¦ grep -v grep ¦ awk '{print $2}'`
kill `ps -ef ¦ grep Xvfb ¦ grep -v grep ¦ 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]