Renaming JPEG+RAW together

JK
Posted By
Jim_Kelly
Mar 2, 2004
Views
504
Replies
6
Status
Closed
Some cameras have the ability to simultaneously produce a JPEG and a RAW file for each photo taken. In the case of Nikon, at least, these files have the same filename but different extensions (e.g., DSC_3426.JPG and DSC_3426.NEF).

I would like to rename the files to something that has a date and a sequence number but also make sure that corresponding JPG and NEF files end up with the same filename. So, I would end up with something like:

040302_0001.JPG
040302_0001.NEF
040302_0002.JPG
040302_0002.NEF
040302_0003.JPG
040302_0003.NEF
et cetera

Short of renaming JPGs and NEFs with separate Batch Rename operations, I can’t seem to find a way to get Photoshop Batch Rename to give the same sequence number to corresponding JPGs and NEFs. Unfortunately, using separate batch renames won’t work for me because not all of the JPGs have corresponding NEFs, so the sequence numbers for the separate renames don’t stay in step.

Can anyone suggest a method to do this?

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Y
YrbkMgr
Mar 2, 2004
Jim,

I can’t think of way to do it without scripting, and I’m not sure if you can do it with scripting. If you have the scripting plug-in, this might be a good question for the Scripting forum at the top.

The issue is, that you must have some kind of check that checks for the presence of a filename – so to speak. If the filename doesn’t exist in set two, but exists in set one, then skip that file name. There’s no real elegant way to do it.

The best you can do natively in Photoshop is what you’re doing now, or manually sort – which is still kludgy.

Peace,
Tony
W
wes
Mar 2, 2004
Jim, it isn’t really fast if you have a lot of files, but, if you have PSCS, you could flag the jpg files and rename those, then tag the nef files and rename those. Or, just put them into different directories and rename from there. As I say, not the easiest but a way.

wrote in message
Some cameras have the ability to simultaneously produce a JPEG and a RAW
file for each photo taken. In the case of Nikon, at least, these files have the same filename but different extensions (e.g., DSC_3426.JPG and DSC_3426.NEF).
I would like to rename the files to something that has a date and a
sequence number but also make sure that corresponding JPG and NEF files end up with the same filename. So, I would end up with something like:
040302_0001.JPG
040302_0001.NEF
040302_0002.JPG
040302_0002.NEF
040302_0003.JPG
040302_0003.NEF
et cetera

Short of renaming JPGs and NEFs with separate Batch Rename operations, I
can’t seem to find a way to get Photoshop Batch Rename to give the same sequence number to corresponding JPGs and NEFs. Unfortunately, using separate batch renames won’t work for me because not all of the JPGs have corresponding NEFs, so the sequence numbers for the separate renames don’t stay in step.
Can anyone suggest a method to do this?
JK
Jim_Kelly
Mar 2, 2004
Well, thanks for the effort. I was hoping there might be something in PS Browser that I wasn’t aware of. I actually just figured out a way of doing what I want, but it requires two Batch Renames in BreezeBrowser followed by another Batch Rename in utility I’m alpha testing for someone. Kinda ugly.

ttfn,
Jim
C
Cooter
Mar 2, 2004
I am in the process of writing a utility to do what you want, but haven’t quite finished it yet. What it does is change the "DSCNxxxx" to "YYMMDDSS" where "SS" is the sequence number. It goes into the file and reads the actual exposure date from the EXIF data, then adds a two character sequence number. If the sequence goes beyond 99 for any given date it changes to "AA, AB, etc." through "… ZX, ZY, ZZ" for a very large possible combination of sequence numbers. At present I have it working for .JPG, .TIF and .NEF files as they come from a Nikon camera. Also, .JPG if they have been opened and saved in Photoshop 7 or CS. I have yet to fix the other extensions for PS, and for .NEF files converted through Nikon Capture. The problem is that each program, even each version, rewrites the EXIF data in a different place. I don’t want to release the thing until I’m satisfied that it works and is reasonably idiot proof, but will post the availability (almost certainly free) when and if I finish it to my satisfaction.

wrote in message
Some cameras have the ability to simultaneously produce a JPEG and a RAW
file for each photo taken. In the case of Nikon, at least, these files have the same filename but different extensions (e.g., DSC_3426.JPG and DSC_3426.NEF).
I would like to rename the files to something that has a date and a
sequence number but also make sure that corresponding JPG and NEF files end up with the same filename. So, I would end up with something like:
040302_0001.JPG
040302_0001.NEF
040302_0002.JPG
040302_0002.NEF
040302_0003.JPG
040302_0003.NEF
et cetera

Short of renaming JPGs and NEFs with separate Batch Rename operations, I
can’t seem to find a way to get Photoshop Batch Rename to give the same sequence number to corresponding JPGs and NEFs. Unfortunately, using separate batch renames won’t work for me because not all of the JPGs have corresponding NEFs, so the sequence numbers for the separate renames don’t stay in step.
Can anyone suggest a method to do this?
RS
Robert_Shomler
Mar 3, 2004
I do this for all my Canon raw files (each of which is a file pair of CRW_nnnn.crw and CRW_nnnn.thm files) using the free CKRename program from

<http://www.musicsucks.com/CKSoft/CKRename/index.htm>

Using that program’s string substitution I quickly and easily change the CRW_ to abc_ for a set files immediately after transfering them to HD from camera media cards.

Bob Shomler
DR
Danny_Raphael
Mar 5, 2004
Dunno if this will help, but I’ll toss it out anyway.

If you’re not using PS CS, stop here! CS-only solution.

Have you looked into Dr. Brown’s Image Processor? See www.RussellBrown.com. It’s a JavaScript (I’ve not used it myself), but have read that among its bells/whistles is the ability to accomodeate (in a single pass) conversions to multiple formats and place resulting images in separate subfolders if desired. I wouldn’t be surprised if it handled custom names as well.

HTH…
~Danny~

How to Master Sharpening in Photoshop

Give your photos a professional finish with sharpening in Photoshop. Learn to enhance details, create contrast, and prepare your images for print, web, and social media.

Related Discussion Topics

Nice and short text about related topics in discussion sections