Resizing followed by applying transparency!

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
Flamie
Forum Contributor
Posts: 166
Joined: Mon Mar 01, 2004 3:19 pm

Resizing followed by applying transparency!

Post by Flamie »

I'm having some problems with something I'm trying to do:
I have a .PNG of an enemy:
http://wormsrenegade.com/worms/images/E ... rgfish.PNG this for exemple.
So I'm trying to do a script to resize it while keeping the background ENTIRELY of the same color, so that when I do imagecolortransparent there arent pixels around the monster that have "dithered" and changed colors.

Any ideas? :(

Edit: Forgot to mention I wanna keep the image as clear and smooth as possible.
Post Reply