selective recolor an image

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
how might one recolor an that, for example, all shades of
purple are converted to shades of red?

i'm sure someone's already made a function out there, i just don't have
a clue what to google.

if someone could point me in the right direction, or post some code, it
would be much appreciated.

Re: selective recolor an image

You can use imagecolorset. There's an an example in the comment from
olivier in the manual page:

Another way is to copy the image pixel by pixel. Example:

Mark wrote:
Quoted text here. Click to load it

Site Timeline