Irfanview is a free program that can do this either interactive or as a batch job. Works like a charm.