Hi, would anyone know the most efficient way to replace a colour with an other in a truecolor picture? For the moment, I'm doing it manually, looping though the pixels and using imagecolorat() to test the pixel and imagesetpixel() to change its colour if needed, but it's slooooow: a 900x800 picture takes 10 seconds or so to convert one colour, and I will need to convert up to 50 colours.
Has anyone got a better idea?
TIA,
Kinniken