It's important that the extension you add to the filename is the appropriate one for the actual file type of the image. When you choose a format from the Format pop-up menu in the Save As dialog box, the appropriate extension is added automatically. If you entered the extension manually, you could have typed in an extension that doesn't match the file format of your file.