Author Topic: Raneming files  (Read 4047 times)

Offline Frank

  • Full Member
  • ***
  • Posts: 206
    • View Profile
    • Frank Fitzpatrick Photography
Raneming files
« on: July 17, 2016, 03:32:48 AM »
I am in the process of re organising my images on a number of drives and trying to rationalise my images by culling the dross and the like. This is something I should have started some time ago  :-[ but to busy to apply myself for which I am now paying the price.

Trying to rename files which have camera (Nikon) applied filenames and I want to include part of the caption. For instance file 1234.nef to become 1234.nef_Temple of vesta.nef. Part of the problem is I have a lot of images with largish captions, which also need to be reorganised, so I thought that extracting part of the caption would do the trick. When I try I get an error message. So far I have only experimented on single images before committing to bigger runs.

Has anyone done this?

Thanks in advance

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Raneming files
« Reply #1 on: July 17, 2016, 04:44:55 AM »
What have you tried to rename your files this way, and what as the error message? Renaming the files as you describe should be possible. E.g., using a rename string like so {filenamebase}_{caption} if you want/need you could trim the maximum length of the caption too.

However, perhaps your way of renaming the images is not the best to really get them organised. For instance, you likely end up with many duplicate file numbers, resulting in files from different dates ending up sorted together (sure, you can have PM sort by e.g., capture time, but that is slow).
Another disadvantage is that if you ever change the caption you need to rename the file too.

I suggest you take a different renaming approach, one which already reflects your organisation strategy better and sorts your images in a way that helps you find them.

Personally I rename all my files so they automatically sort by date. My personal images I organise by year and "event", my professional images by client and commission. The renaming part is automatic (done at ingest), the further organisation is, of course, manual, but easy to do.

The renaming string I use looks something like this {datesortlong}_{timesortlong} this will produce unique, sortable filenames if you shoot with one camera. Because I shoot with multiple cameras at the same time, I have actually added the camera model to this filename to always keep it unique, even if two cameras fired at the exact same time. I could have added e.g., the serial number too, but one of my cameras didn't embed that in the metadata so I thought of another simple solution.  As I do not own multiple cameras, the camera model sufficed in my case. (I abbreviate the camera model to e.g., just D4 instead of NIKON D4 using a code replacement for brevity).

Hope this helps,
Hayo
« Last Edit: July 17, 2016, 04:47:09 AM by Hayo Baan »
Hayo Baan - Photography
Web: www.hayobaan.nl

Offline Frank

  • Full Member
  • ***
  • Posts: 206
    • View Profile
    • Frank Fitzpatrick Photography
Re: Raneming files
« Reply #2 on: July 17, 2016, 06:03:43 AM »
I get an error message saying:

An error occurred while renaming photo xyz
The operation will be cancelled , and the original filename will be restored

Sometimes it works and other times it does not. Suspect it may have something to do with the length of the caption?

Offline Hayo Baan

  • Uber Member
  • ******
  • Posts: 2552
  • Professional Photographer & Software Developer
    • View Profile
    • Hayo Baan - Photography
Re: Raneming files
« Reply #3 on: July 17, 2016, 06:42:02 AM »
I get an error message saying:

An error occurred while renaming photo xyz
The operation will be cancelled , and the original filename will be restored

Sometimes it works and other times it does not. Suspect it may have something to do with the length of the caption?

It could have to do with the length of the caption or, more likely, with some of the characters in the caption. Not all characters can be used in filenames (especially slashes are a problem, but depending on the operating system you use, other characters can be problematic too). This is another reason to not use the caption in the filename ;)
Hayo Baan - Photography
Web: www.hayobaan.nl