Photo Blog
[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:
- I take a photo with the phone
- I email this photo to a special email address
- Postfix (the mail server) passes emails sent to this address to a PHP script
- 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
- If the subject starts with a period (.) it will rotate the image 90 degrees clockwise
- It then creates a thumbnail of the image
- 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.
Recent comments