Why your images may not sort correctly
Thursday, January 14th, 2010If you have ever had to fight with a list of image file names in a folder that wouldn’t stay sorted, you have to blame Bill Gates.
When Bill was writing the DOS operating system for the first PC, to save time he used the old “8.3″ file naming specification: eight characters (no punctuation or spaces), a period, and three characters on the end to tell you what kind of file it was. So for years, files could only have names like Lotus.exe (an executable program) or data.dbf (a database file). If you tried to name a file Aunt Millie’s 80th Birthday Picture #2, the computer would refuse to open the file.
But the worst part of 8.3 file names was that PCs sorted files according to a strange rule where numbers came before letters, and “11″ came before “2″. For example, say you had four files on your computer in the order you want them printed in LabPrints:
- Page 1.jpg
- 2.jpg
- 11.jpg
- Back page.jpg
LabPrints will store them alpha-numerically, so what you will get is this:
- 11.jpg
- 2.jpg
- Back page.jpg
- Page 1.jpg
Notice on the screen on the right. I made this as an experiment. You can see four files alphabetically sorted in Windows on top, and the exact same four files sorted alphabetically in DOS on the bottom - both on my PC! Although Mac people have never had this limitation, us PC folks have been fighting with it for years.
If you are a Mac user, you have a different set of problems that you don’t even know about. Mac files are stored in 2 parts: the file itself, and a hidden file that has the real file name, the extension, what program opens it, etc. That’s why when you copy just the image file from a Mac to a PC, the PC can’t open it. Newer Macs have solved this problem by including a check box that you should use that makes sure the files can be read by both Windows and Mac.
So what’s the solution? My suggestion is, when naming lots of images, put a number in front, and pad it with zeros so they line up. Then the rest of the file name can describe the image. For example:
- 001 Front cover.jpg
- 002 First page.jpg
- 003 Mother Father.jpg
- 004 Bride.jpg
Obviously, you only need the extra zero if you have more than 99 pages. However, these images will always sort correctly, no matter which computer (or CD or DVD) you save them on.
A couple of other “rules” for file naming that will make your life simpler:
- Keep file names short. “Katrina and Jeremy Dompulskis Wedding on December 12 2009-001.jpg” is so long it will always be abbreviated when it is viewed.
- Don’t use punctuation. “Bill and Martha’s Wedding @ 1:00p.m.” will work on a Mac, but not a PC.
So what’s an easy way to rename files? Both ROES and LabPrints have automatic file renaming built into them. If you’re looking for something that can batch process images, try Bulk-rename. I was able to rename this sample group of four DSC files automatically less than 10 minutes after I installed the utility. Best of all, the basic version is free.


