The eclectic musings of a bitter software engineer.

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.

Saturday July 17, 2004 @ 05:15 PM (PDT) Posted by Nightshade
that's very cool

how's it work? Specifically, how did you automate the upload?
Saturday July 17, 2004 @ 05:31 PM (PDT) Posted by muppet

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.

Saturday July 17, 2004 @ 06:51 PM (PDT) Posted by Ryan Grove
Now I'll have to make a point to learn the PEAR and ImageMagick libraries.

Thanks!
Saturday July 17, 2004 @ 07:07 PM (PDT) Posted by muppet

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

Sunday July 18, 2004 @ 08:24 PM (PDT) Posted by n00ch

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

Sunday July 18, 2004 @ 10:22 PM (PDT) Posted by Ryan Grove

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

Monday July 19, 2004 @ 06:12 AM (PDT) Posted by muppet

your comment count is broken.

Monday July 19, 2004 @ 12:17 PM (PDT) Posted by muppet

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

Monday July 19, 2004 @ 12:40 PM (PDT) Posted by Ryan Grove
hmm I swear it was off by one when I posted :D

damn it.
Monday July 19, 2004 @ 04:08 PM (PDT) Posted by muppet

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

Monday July 19, 2004 @ 05:48 PM (PDT) Posted by grizelda

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

Tuesday July 20, 2004 @ 06:44 AM (PDT) Posted by Innismir

And it gets updated more often, too!

Tuesday July 20, 2004 @ 01:11 PM (PDT) Posted by Nightshade

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

Wednesday July 21, 2004 @ 12:51 PM (PDT) Posted by Ryan Grove
it should be easy enough to implement, even without ImageMagick.

After a bit of research on MIME encoded emails, anyway...
Wednesday July 21, 2004 @ 02:19 PM (PDT) Posted by muppet
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.

Wednesday July 21, 2004 @ 03:15 PM (PDT) Posted by Ryan Grove
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 :)
Wednesday July 21, 2004 @ 03:19 PM (PDT) Posted by muppet
Post a comment

Basic XHTML (including links) is allowed, just don't try anything fishy. Your comment will be auto-formatted unless you use your own <p> tags for formatting. You're also welcome to use Textile.

Don't type anything here unless you're an evil robot:


And especially don't type anything here:

Copyright © 2002-2008 Ryan Grove. All rights reserved.
Powered by Thoth.