8
Hi,
like you all, I'm still looking for something useful, but there seems to be no better answer for UNIX/Linux than the script I used. Assentially, it opens a VNC server X session 800x600, opens the URL in Mozilla, takes a screen snapshot, and resizes the snapshot to 153x115 px. The X session is finally closed. Lots of sleep statements; snapshot takes two minutes, but you can take thousands over a day.
No guarantee, no support, no nothing. Just as it is. Known issue: It left jobs behind -- no idea why. So clean up later or debug. Insert echo statements to debug.
May be it helps.
-Karsten
======= web-capture.sh ==================================
outfile=`echo "$1" | sed 's#http://##' | sed 's#/#_#'`.jpg
if [ -e "$outfile" ]; then
echo "found: $outfile"
exit
fi
echo "creating: $outfile"
# exit;
date
echo "starting: $1"
vncserver :163 -depth 24 -alwaysshared -geometry 850x640
DISPLAY_SAVE=$DISPLAY
DISPLAY=:163
export DISPLAY
echo "sleep 25"
sleep 25
mozilla -P leo $1 &
echo "sleep 45"
sleep 45
xwd -silent -root -display :163 | xwdtopnm | pnmscale 0.18 | pnmconvol sharpen.cvl | ppmtojpeg > $outfile
# pnmcut -left 10 -right -10 -top 100 -bottom -30
vncserver -kill :163
DISPLAY=$DISPLAY_SAVE
export DISPLAY
echo "sleep 30"
sleep 30
date
echo "done: $1"
========== sharpen.cvl =======================
P2
3 3
18
8 8 8
8 26 8
8 8 8