Page 1 of 1

Cutting Corners

Posted: Thu Jan 20, 2005 2:24 pm
by onion2k
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:

Image

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.

Posted: Fri Jan 21, 2005 3:54 am
by JayBird
Very nice indeed!

Posted: Fri Jan 21, 2005 9:51 am
by pickle
I have to say - you certainly picked the right picture to promote your code! This looks cool - I'll have to give it a try.

Posted: Fri Jan 21, 2005 11:55 am
by patrikG
You're cutting corners, onion2k ;) Nice one.