Cutting Corners

Need help with Photoshop, the GIMP, Illustrator, or others? Want to show off your work? Looking for advice on your newest Flash stuff?

Moderator: General Moderators

Post Reply
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Cutting Corners

Post 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.
User avatar
JayBird
Admin
Posts: 4524
Joined: Wed Aug 13, 2003 7:02 am
Location: York, UK
Contact:

Post by JayBird »

Very nice indeed!
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

You're cutting corners, onion2k ;) Nice one.
Post Reply