To rename photos with player names from a list, number the files in shooting order, build the new names in your roster spreadsheet, and let a batch renaming tool swap the old names for the new ones. Some layout tools can also read a list of camera file names and players, so check first whether you need to rename at all.
Why rename photos with names and numbers?
A file name with the player's name and number can be found and checked by anyone, months later. When a parent asks for a reprint in the off-season, Nora_Bennett_7.jpg turns up in a search in seconds. With DSC_0891.JPG you open folders and look at faces.
Names in the file also travel with the photo. Labs, yearbook staff and layout tools can read them, and a file that ends up in the wrong folder still says who is in it.
What file name format works best?
Use first name, last name and jersey number, separated by underscores, like Nora_Bennett_7.jpg. Pick one pattern and use it for every team.
- Keep the same order of parts in every file.
- Put the jersey number at the end, with no extra digits from the camera.
- Avoid characters that break on some computers, such as / : * ?
- For coaches, write Coach in front:
Coach_Luis_Ortega.jpg. - For a second photo of the same player, add a word at the end:
Nora_Bennett_7_action.jpg.
The sports photo file naming guide lists more patterns, including last name first.
How do you build the new names in a spreadsheet?
Sort the roster in the order you shot the players and let a formula join the columns. With the first name in column B, the last name in C and the number in D, the formula =B2&"_"&C2&"_"&D2 gives Nora_Bennett_7.
| Old name | First | Last | New name |
|---|---|---|---|
Tigers_001.jpg | Nora | Bennett | Nora_Bennett_7.jpg |
Tigers_002.jpg | Eli | Okafor | Eli_Okafor_12.jpg |
Tigers_003.jpg | Maya | Lindqvist | Maya_Lindqvist_3.jpg |
The list has to match the photos one to one. Delete an absent player from the list, and keep only one photo per player, or add a row for the second photo. The team roster template is a ready CSV to start from.
How do you batch rename from the list?
Do it in two steps: first give the files a clean sequence in shooting order, then swap the sequence for the names.
- In Lightroom, sort each team's picks by capture time and export them with a sequence number, like
Tigers_001.jpg. The Export dialog does this under File Naming. - Put those names into the Old name column of the roster, in the same order.
- Load the old and new names into a batch renaming tool that accepts a list of name pairs.
- Check the preview line by line, then rename.
Work on copies, never on your only originals. The rename built into your computer's file browser can add text and counters, but it cannot read a list of names, so you need a renaming tool for step 3.
Do you have to rename the files at all?
Not always. If the names are only needed for composites and other layouts, a roster CSV with a File column does the same job, and the camera names stay as they are.
RosterFrame works both ways. It reads the name and number from file names like Nora_Bennett_7.jpg, or it matches camera names such as IMG_4821.jpg to players through a roster CSV with a File column. It does not rename the files on your disk. It can also take names from name card photos, from the shooting order plus a name list, or from photo metadata typed in Lightroom.
How do you check for mistakes after renaming?
Check the count, then the first and last player of every team. One skipped or extra frame shifts every name after it, so if the last player is right, the ones before usually are too.
- The number of files equals the number of rows in the list.
- No file still has a camera name.
- The jersey number in the photo matches the number in the file name for the first player, the last player and two in the middle.
- No name appears twice in one team, unless that player has two photos.
Before printing, send each coach a name check sheet with every photo, name and number.
How this article was made: written and edited for RosterFrame. Facts about RosterFrame in this article were checked against the app. First published .