Who, me?

iChatUSBCam has just been updated, so I took the opportunity to see if it works any better with my Creative USB webcam. Seems to – hurrah! This led to me trying out evocam, a very nice package for taking snapshots, videos, etc. Combined with a little bash scripting magic, I now have the hideous picture of me and desktop screenshot over on the left-hand menu of my blog.

Of course, if you aggregate this, you won’t be able to see it, so here it is – or rather, here I am:

When the madness next takes me, I think I’ll write this in Applescript so that it’s more in line with the Apple gooey GUI ethos. Meanwhile, if you feel the urge to do the same, take a gander at the following. It’ll only work on a Mac, by the way.

#!/bin/sh

# Get the screen
/usr/sbin/screencapture -x -m /tmp/screen.pdf >> /dev/null 2>&1
/usr/bin/sips -z 60 80 -s format jpeg /tmp/screen.pdf -o /tmp/webcam_screen.jpg
rm /tmp/screen.pdf

# Shrink images
/opt/local/bin/convert -size 80x60 /tmp/webcam.jpg /tmp/webcam_tm.jpg

# Copy images
# Do whatever you want here ... ftp, rsync, scp, ...

Bung that in a cron job, or run it occasionally, or whatever. Freaky stalker types can also find me here.

This entry was posted in Personal. Bookmark the permalink.