[This feature has been removed from Stut.net because I wasn't using it much.]

I found myself with an hour to spare this lunchtime so I knocked up something I've been meaning to get around to ever since I bought a camera phone: a photo blog. There's not much in there yet but I'll be snapping various sights I see day to day.

For those who are interested it works like this:

  1. I take a photo with the phone
  2. I email this photo to a special email address
  3. Postfix (the mail server) passes emails sent to this address to a PHP script
  4. The PHP script pulls the email apart and saves any attached images into the images folder using the date, time and email subject as the filename
  5. If the subject starts with a period (.) it will rotate the image 90 degrees clockwise
  6. It then creates a thumbnail of the image
  7. The website gets a list of the files in that images directory to create the page at http://stut.net/photoblog/ extracting the date, time and description from the filename

Lovely.

blog comments powered by Disqus