It won't tell you the original extension, you'll have to figure it out from the information it provides. I have a screenshot in the folder screens on my Desktop, and changed its extension to .doc, then used the file command. I suspect you did that part incorrectly.
1. Type
file
2. Hit the spacebar
3. Drag the file into the Terminal window and drop it
4. Hit the Return key
Here's what my command looks like:
-bash:~francine$ file /Users/francine/Desktop/screens/dylan.doc
And here's what Terminal replies when I hit the Retrun key:
/Users/francine/Desktop/screens/dylan.doc: PNG image data, 880 x 661, 8-bit/color RGB, non-interlaced
It repeats the file location, then informs me it is actually a PNG image. So I would add back the extension for a PNG image, which is .png. With something that was originally a jpeg, you'll get this:
/Users/francine/Desktop/screens/lindsaylogo.mov: JPEG image data, JFIF standard 1.01
You would then add the typical .jpg extension.
You don't accomplish anything by changing extensions on files, except to completely confuse the system. To convert something from one format to another you need a program that can actually change the contents of the file.
Francine
Francine
Schwieder