Create Thumbnail in PHP

I wanted to get some thumbnail creation code in PHP to use for a little project I was working on, and so I traipsed over to Google and asked for "php thumbnail". I took a peek at the first search result, snagged the code, inserted it in my test app, and went merrily on my way. And that will be the last time I trust Google to find me code.

There are many problems with the code that I got. It's not malicious, but it does many easy things wrong. And the one thing that it's supposed to do well - the thing for which Google found it - it doesn't do correctly.

I can't entirely blame the code author, because this particular bit of code is very commonly written incorrectly. But what's a guy to do when you just want a simple PHP function (as opposed to a whole class) that generates thumbnails? Well, it's about time someone did something about that. Here we go....

more

So Much More

There is so much stuff going on, I'm not even sure where to begin.

If you missed it, yesterday's April Fools Day activities went off quite well. Thanks a bunch to skippy, moeffju, and chrisjdavis for helping out and playing along.

Also, I'd like to apologize to all the WordPress users who found the ForkPress link on their Dashboards yesterday. I was really tired when I entered the post, and I hadn't intended to tag it "WordPress" when I was scanning through the text. I hope it was entertaining just the same....

more
Page:  1