Or faster, smaller and better at keeping metadata together than ImageMagick:
IJG's
jpegtran. This has the advantage of preserving the luminance channel exactly, whereas IM is likely to decompress, greyscale, then recompress the image.
--
bowling trophy thieves, die!