I have a script that runs recursively over many directories, and I'd like to convert all the 8bpp images to 4bpp ones. Is there something already written that can perform this sort of thing? I'd like to avoid to write the conversion in Ruby. Maybe something written in C could offer some performance boost?
Any ideas?