Before the rush

Before the rush
by evan-pak

Submit your Photo
Hall of Fame

Please participate in Meta
and help us grow.

Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is it possible to change the default filename prefix for pictures taken? It would be handy to help distinguish between those taken on each body, and also to allow me to tweak every 10000 shots so that filenames don't ever overlap.

share|improve this question
up vote 4 down vote accepted

A quick Google suggests that the 5D doesn't have an in-camera way to do this, but instead requires a post rename.

Personally, I use Exiv2 to read the date+time from my EXIF metadata and prefix this to the filename, precisely to avoid any possibility of overlapping numbers.

Here's the command I use to do that with:

"\path\to\exiv2.exe"  -k -v -r %Y%m%d-%H%M%S_:basename: rename _DSC*

(The _DSC* there is because my images start with _DSC prefix - meaning I can safely run the command on a mixed contents directory and only rename what I should, since nothing else starts with these characters.)

Based on this Canon MakerNote page, you can extract the serial number of the camera, which allows you to differentiate between images on different bodies. There is also a page providing details of more generic metadata.

Not as ideal as being able to configure it in the camera settings (as the 1D appears to allow; and no idea why they'd not let the 5D do it too), but at least this allows you to run a single command and get all your images renamed as you want.

share|improve this answer
I knew the 1D had it, but I could only find options for target folder in the menus, so wondered if I was being dim... – Rowland Shaw Sep 25 '10 at 19:19
I don't know why you can't change the prefix. Strangely enough the camera switches between the prefixes IMG and _MG depending on whether or not the colour space it set to sRGB of Adobe RGB respectively. – Matt Grum Sep 26 '10 at 14:15
@Matt that might be enough for me :) – Rowland Shaw Sep 26 '10 at 14:43

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.