If you drag the image into iPhoto, you can then click on it in the gallery, choose export, and then choose the "scale no larger than..." option to do this. Then choose the format from the pull-down (if you leave it at "original," then it will re-export in the old file format, e.g. jpg if the original was jpg).