Grey's Laboratory
« Back to Grey's Adventures

Twimage.php

Turns tweets into images. Vaguely customisable. Full of bugs.

I wanted to display my latest tweet in forum signatures and on services like Last.fm, but these do not allow scripts or raw HTML to be used. What they do allow, however, is remote image linking - and hey, I needed some experience in generating images with PHP. The code is totally free to use, modify and distribute with or without attribution. I don't really care, it doesn't work too well anyway.

Figure 1. Default output.

There are some customisation options built into the script and defined in the URL, primarily concerning dimensions and colours. You can, of course, add all manner of random crazy things yourself.

Figure 2. Somewhat customisable!

Source code is here: twimage.php
It's terrible, I know.