Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Batch change file extensions

While looking for a way to batch change file extensions I came across an archived thread that states you can use programs like Name Munger to accomplish this. However, I don't think it works to simply change the file name to include a different file extension. I don't believe this gives you a valid extension. I did test this by changing (with Name Munger) the file extension from "NEF" to "PSD". Photoshop couldn't open the file stating "not a Photoshop document".

Anyone no of a way to batch change file types?

imac, Mac OS X (10.6.1)

Posted on Mar 1, 2010 3:26 PM

Reply
11 replies

Mar 1, 2010 3:46 PM in response to Douglas Amsbury

I did test this by changing (with Name Munger) the file extension from "NEF" to "PSD". Photoshop couldn't open the file stating "not a Photoshop document".


That wouldn't be a valid change. Both .nef and .psd files may be openable by Photoshop, but the format of a .nef file is very different from the format of a .psd file. If you change the extension, the file won't be openable because the contents of a .nef file will not be valid as contents for a .psd file.

That said, should you have a legitimate extension change to do, here's how (using the example of .jpg to .jpeg):

In the Terminal, type:

cd folder/path/here
foreach infile (*.jpg)
mv $infile $infile:r.jpeg
end

The "folder/path/here" part is the path to the folder holding the files to rename. The easiest way to insert that path is to type the "cd " part and then drag the folder onto the Terminal window.

Mar 1, 2010 3:55 PM in response to Douglas Amsbury

File extensions aren't arbitrary! Changing NEF to PSD won't work, because NEF isn't a Photoshop file--as I recall it is a Nikon Raw file, and while Adobe Camera Raw can open it, and then pass it on to Photoshop, Photoshop itself won't open it, because it is not in fact a Photoshop file.

Many files have information embedded in them that declare what they really are, jpegs for instance. If you arbitrarily change .jpg to .tif a program that is perfectly capable of opening both file types will likely declare the file isn't a proper tif, since the file itself declares itself a jpeg, and refuse to open it.

There are SOME cases where you can change the extension and have things work. But more often than not you need to convert files from one type to another. Simply changing the extension doesn't accomplish that.
Francine

User uploaded file
Francine
Schwieder

Mar 1, 2010 8:46 PM in response to Jason Harrington

Use Adobe DNG Converter. It fairly fast and works flawlessly.


Yes that works but doesn't solve my problem since I think in essence DNG is still a raw file. I need to convert to something like Tiff or even PSD would work. Of course I can convert files one at a time but that is too tedious for a batch of files. I wont go into details here for my reasons to convert but it would be nice if I could find a faster way. However, I am grateful for the suggestions. Thomas talked about doing something in the terminal but that sounds beyond my capabilities.

Mar 1, 2010 11:12 PM in response to Douglas Amsbury

Yes, if you have the full version of Photoshop, I'm sure you could write an Action to open the file in Adobe Camera Raw, with a default settings, pass it to Photoshop and then Save As. You could then make the Action into a Droplet, then drop files on it and let Photoshop do its thing. If you don't, your best bet is probably to take a look at Graphic Converter, which I believe has a number of different batch conversions available.
Francine

User uploaded file
Francine
Schwieder

Mar 2, 2010 3:22 AM in response to Douglas Amsbury

Thomas talked about doing something in the terminal but that sounds beyond my capabilities.


That was just to change the extension of a batch of files, which would not solve your problem, as we said.

Did my other post or Francine's solve your problem? You sound like it's still not solved, but I'm not sure if that was specifically in response to Jason's suggestion or if none of the suggestions have worked.

Mar 2, 2010 12:28 PM in response to thomas_r.

Did my other post or Francine's solve your problem? You sound like it's still not solved, but I'm not sure if that was specifically in response to Jason's suggestion or if none of the suggestions have worked.

Haven't solved it yet but will work on Francine's suggestion. Don't have experience with droplets but will give it a try. I do have CS4.

Mar 2, 2010 4:42 PM in response to Francine Schwieder

Yes, if you have the full version of Photoshop, I'm sure you could write an Action to open the file in Adobe Camera Raw, with a default settings, pass it to Photoshop and then Save As. You could then make the Action into a Droplet, then drop files on it and let Photoshop do its thing.


Thanks to all. Francine's suggestion solved my problem. It is a little slow in that I have to manually click on the "open image" in ACR for each file but it is doable.

Batch change file extensions

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.