Author Topic: Changing Filename  (Read 1393 times)

Offline Dewcal

  • Member
  • **
  • Posts: 69
    • View Profile
Changing Filename
« on: January 06, 2021, 09:26:27 AM »
I keep all my images with individual file numbers as produced by the camera. As examples - _5051234, _5051235 etc.  Unfortunately, I frequently get caught out when the count goes over 9999 and starts again at 0000.  So I end up with _5059999, _5050000, _5050001 etc.  Eventually, I remember to go into the camera menu and change the prefix from 505 to 506 and all is well again.

This invariably leaves me with a number of mages that have the "incorrect" filename / sequence.  Having ingested these into PMP and then culled the shoot, can anyone kindly advise how I may change the filenames from the 505 to 506?  As mentioned, I no longer have a sequential number of images so am at a loss at the moment.  I have a few hundred images I do not wish to have to change manually.....

Thanks for any help.
Dave

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 24764
    • View Profile
    • Camera Bits, Inc.
Re: Changing Filename
« Reply #1 on: January 06, 2021, 09:39:26 AM »
Dave,

I keep all my images with individual file numbers as produced by the camera. As examples - _5051234, _5051235 etc.  Unfortunately, I frequently get caught out when the count goes over 9999 and starts again at 0000.  So I end up with _5059999, _5050000, _5050001 etc.  Eventually, I remember to go into the camera menu and change the prefix from 505 to 506 and all is well again.

This invariably leaves me with a number of mages that have the "incorrect" filename / sequence.  Having ingested these into PMP and then culled the shoot, can anyone kindly advise how I may change the filenames from the 505 to 506?  As mentioned, I no longer have a sequential number of images so am at a loss at the moment.  I have a few hundred images I do not wish to have to change manually.....

There is a powerful renaming feature in Photo Mechanic Plus which you can read more about here: https://docs.camerabits.com/support/solutions/articles/48001141415-rename-photos
Renaming in conjunction with Variable Substring Extraction should produce a correct result.  First select the images that need to be renamed.  Then bring up the Rename Photos dialog. For the renaming string enter:

_506{filenamebase:-4}

You should see a preview of the result.  If it all looks good then click the Rename button.  The above takes the original name's last four letters/digits and appends them to the desired _506.

HTH,

-Kirk

Offline Dewcal

  • Member
  • **
  • Posts: 69
    • View Profile
Re: Changing Filename
« Reply #2 on: January 06, 2021, 10:34:47 AM »
Kirk,

Many thanks for your prompt help - I have noted the link and have managed to rename all the images.  Excellent.

Many thanks again.
Dave