New feature: Photoblog

Saturday July 17, 2004 @ 03:32 PM (PDT)

To commemorate the arrival of my new phone, I’ve created a new feature: the Photoblog. Whenever I snap an interesting photo with my phone, it’ll be instantly posted to the Photoblog for the good of all mankind.

Yes, this is how I spent my Saturday afternoon.

Comments

That's pretty neat shizzit, Ryan.

that's very cool

how's it work? Specifically, how did you automate the upload?

I have a PHP script running as a cron job every five minutes, checking an IMAP account for messages with image attachments. When I want to add a photo to the blog, I just send it as an email from the phone. The script downloads the message, parses it with the Mail_mime PEAR module, and creates a thumbnail using ImageMagick.

Now I'll have to make a point to learn the PEAR and ImageMagick libraries.

Thanks!

So, if i know the email address i can post a photo too.

Sure, if I had been dumb enough to make it that simple.

Wouldn't be much of a software engineer, then.

your comment count is broken.

How so? I count eight comments. Nine after I post this one. Seems fine to me.

hmm I swear it was off by one when I posted :D

damn it.

For what it is worth, I approve of the photoblog. It is much nicer than the web-cam.

Very cool.
Will you be releasing the program as a Poseidon plugin?

And it gets updated more often, too!

Possibly. It's kinda specific to my own needs right now, but we'll see.

it should be easy enough to implement, even without ImageMagick.

After a bit of research on MIME encoded emails, anyway...
The implementation will carry over just fine. I don't think the ImageMagick requirement will be a problem. I was referring to the need for a dedicated IMAP account for photos to be sent to, and the necessity of running a script every few minutes as a cron job.

A lot of people who use Poseidon don't host it themselves and may not be able to set up an IMAP account or a cron job.

I meant for someone to implement, if you don't release it :) I don't doubt that your implementation is fairly portable.

my host allows cron jobs but then again, I pay plenty for it :)
Copyright © 2002-2012 Ryan Grove. All rights reserved.
Powered by Thoth.