You can use Imagemagick (convert) to do this. I don't have a command line recipe for that at my fingertips, but I know that it works. -- John.