Cutting Corners
Posted: Thu Jan 20, 2005 2:24 pm
This could go in Code Snippets, but its graphics stuff, so I'm putting it here.
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.
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.