Ever wanted to snip the corners off your uploaded images? Like this:

Well, heres a function to do it: http://www.ooer.com/source/corners/corners.zip
You control the colour of the corners, and both the x and y radius (if you don't want circular ones you can do ovals instead! Woo!).
This function requires PHP 4.3 and GD2.