Return to Digital Photography Articles
Depending on what software one uses to import the photos from memory card onto the hard drive, it is possible to have a wide variety of naming strategies. Most of the default file naming mechanisms will end up being very limiting. It is imperative that one comes up with a suitable naming strategy early on, rather than trying to rename tens of thousands of files later on (within the confines of whatever image management / catalog software they are using!). I had to correct the naming of several thousand photos, and it certainly took considerable effort. The earlier a strategy is adopted, the better. That being said, what are the features of a good naming strategy?
- Uniqueness. There will be times when you will want to move files between folders, and occasionally from multiple folders into a single folder (eg. creating a set of web-only versions). In all of these scenarios, having a file with the same name will cause something to be overwritten! Having a file name that is unique on its own, rather than relying on the folder hierarchy above it, will save many hassles in the future.
- Dated. Outside of organizing across some particular content characteristic (eg. pictures from an event or of a particular person), the most common way people like to organize and retrieve their photos is on date / chronological order. Having the numerical date exist in the filename offers many advantages. Of course, for images in which the date is unclear, zero-out the unknown portions (eg. day, day & month or day, month & year).
- Linked to photo numbers (scans only). Including the original roll and photo numbers that came with your exposed negatives allows easy back-reference to the negatives later on.
- Folder hierarchy. As your collection grows, it is imperative that you adopt some hierarchical arrangement of folders. This will depend entirely on how many photos you take per day/month/year.
|
Example of digital photo naming & folder strategy
The following shows an example of the final strategy, incorporating a mixture of digital photos, scanned photos, edited versions and photos from other photographers. Please see the sections below for details on the file naming and folder hierarchy details.
E:\ Pictures\ 2004\ 2004-01-10\ 20040110_r3201_14.jpg 20040110_r3201_15.jpg 20040110_r3201_15-e.jpg 20040110_jv_r1033_24.bmp 20040110_0556.JPG 20040110_0557.JPG 20040110_0557-e.psd 20040110_0557-s.jpg ... |
Sample file and folder hierarchy |
What to do with photos from others?
As described in more detail under the file naming strategy section below, I treat other people's files in the following way:
- Digital photos from others - Rename file with EXIF date pattern but use the optional photographer ID code in the filenames.
- Film scans from others - Attempt to rename with approximate date pattern and roll plus photo number, but also insert optional photographer ID.
- Non-photos from others - Store either in the dated subfolder for the year/month or else put in the general 0000 year folder to represent non-dated entities. Preserve the original file name (so long as it doesn't start off with the 8-digit prefix). These are what I call uncontrolled files.
Reader's Comments:
Please leave your comments or suggestions below!"long path tool" You can use to solve this problem.
My question revolves around the archiving of movie files. How do you keep movie files concurrent with photo file naming if the file naming is derived form the EXIF information? and... do you keep movie files with photos for the purpose of archiving and naming?
For Photos I use: YYYYMMDD-HHMMSS-[Camera Model ########]-[original incremental ####]
( my only problems have been with cameras with very long model names)
The file naming can generally follow the image numbering rules (when using a downloader), but with a different extension. Your scheme of placing the camera model in the file name can certainly work, but I found it more manageable to specify a two-character code to represent the camera model (and have the downloader program detect camera model or serial number and automatically match it to a two-character code).
FYI -- some of the ways in which date/time is captured in video files:
I was thinking if it is not practical to use the file name more. Basically fill it with information. For example:
family_horses_germany_16april_2004_01.jpg
or in a formal way: keyword_keyword_keyword_date_number.jpg
this is 41 bytes, and if I'm not wrong the NTFS file system can hold up to 256 bytes for file names. The only problem I see now with method is when I burn files to cd or dvd the Joliet standard can only hold 64 bytes in the file name (+ path).
sorry for any errors in the text, english is not my primary language.
One scenario where it can be helpful to include some additional information in the filename is when photographers shoot for a variety of clients -- in these cases putting the client name in the filename can useful.
Hope that helps!
This leaves you with enough space still for a date-based filename or just a sequence number. The goal should still be to keep a unique filename for each photo, irrespective of the directory structure.
Some ideas:
If you never shoot more than 999 photos in a day, then you could consider using a scheme such as:
Good luck!
Folder: \[2 digits code]-YYYY\YYYYMMDD-location_event\
Filename: [2 digits code]-YYYYMMDD-[camera generated serial number]
The 2 digits code could be a combinations of letters or numbers. This could indicate what camera and/or media used (eg. digital/film) to take the picture, the author/photograper.
Folder/File renamer: Bulk Rename Utility
For the camera generated serial number, I usually reformat the memory card after the card is being used on another camera. Will this have any effect on the auto numbering? I haven't tried it myself purposedly, but it worked for me last time.
Bulk Rename Utility looks very reasonable, as it has collected together many of the typical functions that one generally brings into the renaming process. The fact that it provides a regex-style option as well is especially nice.
Reformatting the memory card before using it on another camera will generally have no effect on the auto numbering used by the camera (unless the camera is configured for numbering reset), as the camera also maintains the last shot number inside its non-volatile memory. So, you'll probably find that the camera starts shooting from the last shot taken on that same camera. For multi-camera use, that can lead to filename collisions, but the 2-digit code should help distinguish the cameras and avoid this potential problem.
With this program I have been using just the folder structure view so therefore have not tagged any of the photos which will make this process easier (I have already gone through 02').
I will next redo the folder structure after finishing the files but want to be sure I have found the right catalog program before I start to tag.
Please explain the option to tag the file vs tagging the photo if that make sense... It seem ACDsee gives me the option to add a category then the option to actually add a keyword to the photo (will this stay with the photo no matter the software?)
I also see that ACDsee doesn't have collections, do you know what they call this something else?
Why would it be wrong to use the fodler structure in explorer as the "Collection" (Birthdays) then tag the photos (people....).
A bit of rambling here but want to make sure I have everything in order since I am spending a lot of time on this and do find it necessary.
Thank You!
I do wonder how there is a chance of having the same name in the future if the file is 200612 and in the future it would have 2007...?
Regarding the utilities out there for renaming the files what do you recommend.
And most importantly, is there a best approach especially if I am looking to go back through 7yrs of photos to rename?
There is also some organizational benefit to including the day as it helps partition / arrange your files per event when you are viewing them outside of your catalog program. Looking through a directory (in Windows XP explorer, for example) with files named only with the year, month and a sequence number, it will be hard to identify which photos are grouped with which event.
Renaming can be done three different ways. The program you use will be dependent on which stage you are at:
I plan to write up a page with a comparison of renaming utilities as it is crucial to those who need to import / clean-up years' worth of old photos. Other programs worth checking out include The Rename and MRename.
That said, if you keep the catalog program open while you rename files with an external utility (not move), sometimes the catalog program is able to detect these changes and you'll be fine to do it this way. Test first!
In order to figure out the best strategy, you will need to ask yourself a number of questions:
Hope this helps! Good luck!
Also, what is the significance of the prefix (img001 given by the camera? If I have already changed this in the past how should I proceed when renaming the files?
Thank You!
The other benefit is that it helps keep the number of photos down in a single directory. By splitting per day, you will almost always have a manageable number, but collecting all of one month's shots may be impractical someday in the future (occasionally I will shoot over a thousand photos, in a day for example).
So, yes, there is nothing wrong with using a YYYYMM scheme, but keep in mind how your collection may grow in the future!
As for the original numbering from the camera (e.g. IMG_0001), I tend to keep this in the filename (the number only) to help keep the filenames unique. You will want to use some characteristic of the photos that can be automated (ie. don't rename manually!). Most people either take the 4-digit number from the original shot, or they generate one from the date & time of the shot using EXIF info (you would need to include the seconds).
That said, if you have already renamed the files and lost the original image numbers, there is absolutely no problem with numbering them starting from 0000, for example. Most renaming utilities allow you to rename with an arbitrary incrementing number sequence. The whole goal of this renaming process is simply to have all of your photos with a unique filename. The numbers themselves are not important. There are, however, some advantages with using numbers that roughly reflect the chronological order that the photos were taken (so that when you view the filename lists alphabetically, they'll appear in natural sequence), but this is not a necessity.
Hope that helps.
If you use the B-C-D for all photos and set content names, all duplicated will be exposed within a catorory. D is useful over time, esp if your source renames and resends. Share this with your sources.
I was inclined to save the two extra digits in the year but I decided not because it would not sort the files in cronological order.
There are definitely times when a shorter filename would be better (ie. not all applications support long filenames, like the Epson P2000), but the 8+3 style is far too short. Not only would it be difficult to give any reasonable date with the photo's filename, but you would never be able to indicate any derivative filenames with it either. Shortening the year to two digits does save some, but for me the disadvantages are big: lack of sorting and more ambiguous format: is 050902 May 9th, 2002 or September 2, 2005?
Enjoying your pages (still reading the naming section), and this is a subject I've been pondering for my own similar situation for quite some time now. One quick thing I decided on long ago was to save digits and just use two numbers for the year (meaning, 97 and 01, instead of 1997 and 2001). Because as you've pointed out the file names can become pretty long if not heavily abbreviated, this is one easy way to economize. My rationale is that MY photo archive is of MY photos, or at least from my time. I'm pretty sure I'm not going to live to be 100 or better (or at least not accumulate more than 99 years of photo archives), so there no confusing that 66 might be 1866, or 2066, if you take my meaning. I don't know how this affects search issues (I'm not there quite yet, but it's next), but I can't see it being a hinderance. Besides, if I make my date string just six characters, I won't feel so bad about adding another two digit field somewhere else in my photo name string...
Just some thoughts....like I said, I'm still reading
Definitely! In the days of 8.3 naming, we had to be extremely efficient with our naming strategies. Nowadays, all recent operating systems support long file names. It's obvious that my strategy is not as tight as it could be from a digit efficiency perspective, with respect to the year. In all honesty, there is very little to be gained by the century index besides the trivial 2000 after 1999 issue. If one were concerned at all by the overall length issue, the area you indicate would definitely be the first place to trim it down. Thanks for suggesting the alternative!
Fortunately, working from a careful naming strategy means that it is an easy matter to someday change to another format with a simple script.