I have a CGI script that changes GIF images. It replaces each colour throughout the image with a different one. I have been using the Image::Magick Opaque function to do this. However, it is to slow and I would like to speed it up. What is the best way of changeing all instances of a colour throughout an image? Can I alter GIF palettes in perl (without GD) without touching the individual pixels?