in reply to Replace certain color in jpeg

I don't know if that's helping, but CPAN knows (for example) Image::Magick, GD and Imlib2::Image. I think at least the both last have functions for palette-manipulation.

hth,phay

Ordinary morality is for ordinary people. -- Aleister Crowley