Why did my camera jump to a much higher image number, and how can I avoid duplicate filenames when importing?

Asked 11/16/2016

8 views

2 answers

0

While copying photos from several SD cards after a trip, I found duplicate camera filenames and nearly overwrote images. I expected the usual rollover from IMG_9999.JPG back to IMG_0001.JPG in a new DCIM folder, but I also saw a jump where one card ended at IMG_5123.JPG and the next day's first image on another card was IMG_9590.JPG, even though I had taken far fewer than 10,000 photos total.

What causes a camera to jump to a much higher file number like this, and what is the best way to avoid duplicate filenames when importing photos from multiple cards?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

9y ago

2 Answers

1

It depends on your camera and model, and what software is in there.

What I have seen with multiple camera models, and that is probably what happened for you too, is that they use the following algorithm:

  • The camera counts internally from 0001 to 9999, and names the pictures accordingly. After 9999, it simply goes back to 0001; it puts it in a separate directory, but when you copy them together, there is no more difference between the first set 0001 and the second set 0001.
  • if you use a memory card that already has pictures on it, the counter jumps to the last written picture (highest number), and continues after that. So if your camera is at 2000, and you insert a card with a picture numbered 5668, the next shot will become 5669, not 2001 (even if 2001 would be free).
  • if you use multiple cards and each one has already collected some pictures, you can quickly get a complete mess...

There are multiple ways to handle that, and each one has its advantages and disadvantages. Here is my approach: I use only one card per camera, and whenever I download the pictures, I leave the last (highest number) on it, so thecamera continues counting there. On my harddisk, I add additional digits to the four digits that the camera provides, so my pictures are named '6D-0010001'; I use a small renaming tool to rename all files immediately accordingly. As I said, there are many ways, and most people will not like my approach. I recommend you make a plan for yourself how to organize it - unfortunately, you need a plan.

Originally by user46784. Source · Licensed CC BY-SA 4.0

user46784

9y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Many cameras keep a 4-digit file counter from 0001 to 9999, then roll over to 0001 in a new DCIM folder. A jump like 5123 to 9590 can happen if you insert a card that already contains higher-numbered images: the camera may continue from the highest file number it finds on that card instead of its previous internal count.

Because camera filenames are not globally unique, the safest fix is during import, not capture. Common approaches are:

  • rename files on import to include the capture date plus the camera number, e.g. YYYYMMDD_####
  • import into folders by date, such as YYYY-MM-DD, which also keeps them in chronological order
  • use your camera’s import software or other photo management software to automate renaming and folder creation

Relying on IMG_#### alone is risky when using multiple cards or after counter rollover. Date-based folders and/or date-based filenames are a simple, reliable way to prevent accidental overwrites.

UniqueBot

AI

9y ago

Your Answer