homepage Welcome to WebmasterWorld Guest from 54.235.29.110
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
Forum Library, Charter, Moderators: bakedjake

Linux, Unix, and *nix like Operating Systems Forum

    
taking thumbshots
problems with firefox
daniel_o




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

Hi,

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 &#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]

 

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Hardware and OS Related Technologies / Linux, Unix, and *nix like Operating Systems
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved