See if 'convert' in the imagemagick package will do. Note that this is non-free, so you need to check the license also. carl