Singing Potatoes
Thursday, 13 July 2006
Cheering myself up
Ha! Ha! I am on the Intarweb!

Sometimes, when life is pissing me off, I just have to find a way to keep my brain occupied, to take my mind off things for a while. Coding useless Webtoys is a great way to do it. So I made the Stephen Colbert "On Notice Board" Generator.

You're On Notice!

It's still kind of rudimentary; about the best I can do in native PHP is to rotate the text, so it's limited to three lines for the moment (and even those are far from perfect). I could get a bit closer with ImageMagick, but the version installed on my Webhost is several years old and missing the necessary functionality. I've asked for it to be upgraded, so hopefully I can get something better working soon.

What I really need is a perspective transform function (either written in PHP, or an external tool that'll take image data from stdin, do the transform, and spit out the modified data to stdout), but I can't seem to find anything appropriate. I may have to write one.


Posted by godfrey (link)
Comments
Try Netpbm...

http://netpbm.sourceforge.net/doc/pamperspective.html
Awesome, thanks! (As long as you don't need privs to compile/install it...)

Oh, perfect. They've removed the C compiler from the server entirely.

Hmmm. I don't know anything about server executables, but are they Linux? Could you upload a binary to your server and use that?