what’s mine is mine

Posted on December 27, 2009

Some of you may have noticed my test activity here on one red speaker and Twitter. Sorry about the noise.

I’ve been posting more pictures from my iPhone to Twitter that I had expected. Tweetie just makes it too easy to push to their built-in image services. Here’s a screenshot of my last upload:

You can click on the screenshot to see it full-size. My succulent ribs are sharing the screen with some T&A courtesy of Hot Clips and a list of top Yfrog users including The Jonas Brothers. Gross.

So, I looked at the the other image services that Tweetie offers, and it was more of the same. The last option, though, is a custom image service. You can give it any URL, and as long as it mimics the TwitPic API, you’re good to go. I whipped up a PHP script that does the following:

  • Accepts the image upload from Tweetie
  • Uploads the image to one red speaker’s media library
  • Creates a new post titled with the tweet and containing just the image
  • Gets the permalink for the post
  • Shortens the permalink with bit.ly

Tweetie gets back the shortened URL and appends it to the tweet just as it does with every other service. The only downside I see is that you don’t get the preview thumbnail that you get with the built-in services when viewing it within Tweetie. The benefits, however, are awesome: I get to control the presentation of my content, and one red speaker gets a few more posts.

Let me know if you’re interested in the script. I’ll clean it up and push it to GitHub.

Now I’m wondering if I should run my own URL shortener…

Comments
  1. Valh DregDecember 27, 2009 @ 6:30 PM

    Yeah, but how long does that take? Wouldn’t it be longer then just using the regular Twitter application image uploader?

  2. anooprDecember 27, 2009 @ 6:36 PM

    It happens instantly. The whole thing is automated. From my point of view, it’s seamless.

  3. scottDecember 28, 2009 @ 5:49 PM

    PHP?

  4. anooprDecember 28, 2009 @ 6:17 PM

    SHUT UP, SCOTT.

    this is what happens when i’m in alabama.

  5. Beau GilesJanuary 17, 2010 @ 11:36 AM

    Hi there – I’m not sure if you did end up sharing this or getting enough interest, but hey I’d definitely be interested in running my own script for hosting my own images – I’ve done it with short URLs so why not my images as well? :-)
    Beau

Post a comment
Comment