A while back I read a great tutorial about renaming all of your digital camera photos into a format that is easily searchable. So instead of having thousands of files called, "IMG-0194" or whatever, it suggested naming year-month-date-time.
So I found the program KRename, and one of the filters was it could read the meta of the photo of when it was originally created, and rename it that.
So I let that program loose on my entire photo collection, and got everything organized by Year and month. Each folder starts with the year, and there are 12 sub-folders names YEAR-MM (2014-02)
My daughter has the same growing digital camera collection, so I suggested she do what I did, and she agreed. We set her laptop up to dual boot, and she could rename the pictures on the Windows directory using Krename from Kubuntu.
Yesterday she goes to access the pictures for the first time, and Windows can't read a single picture! However when we go back to Kubuntu, every picture is there. With that I realize it's a Windows problem and begin to research. I never ran into this program because the only time I know log onto Windows is to play a couple of games.
I found out that the file name of the picture (2014:01:01 11:39:34.jpg) contains colons, which WINDOWS CAN'T READ!
So now I've got thousands of pictures that I need to strip the colon out, and replace the space with something else.
Krename won't rename the pictures with a colon. If I try to add those pictures, it will add 3-4 copies of the same photo. A directory with 160 or so pictures will quickly mushroom to over 3000 pictures to rename.
So now I have to do this from the command line. I can use the rename command, but I'm having trouble getting the exact syntax to work.
What I want to do..
1. Remove the colons from the file name.
2. Replace the space between the date and time with a dash (-)
3. Do this for all the pictures in the directory, and sub directories.
4. Not disturb the MP4 files, which are correctly named (no colons in the file name)
So I would like to have this..
renamed to this..
Suggestions? Thanks!
So I found the program KRename, and one of the filters was it could read the meta of the photo of when it was originally created, and rename it that.
So I let that program loose on my entire photo collection, and got everything organized by Year and month. Each folder starts with the year, and there are 12 sub-folders names YEAR-MM (2014-02)
My daughter has the same growing digital camera collection, so I suggested she do what I did, and she agreed. We set her laptop up to dual boot, and she could rename the pictures on the Windows directory using Krename from Kubuntu.
Yesterday she goes to access the pictures for the first time, and Windows can't read a single picture! However when we go back to Kubuntu, every picture is there. With that I realize it's a Windows problem and begin to research. I never ran into this program because the only time I know log onto Windows is to play a couple of games.
I found out that the file name of the picture (2014:01:01 11:39:34.jpg) contains colons, which WINDOWS CAN'T READ!
So now I've got thousands of pictures that I need to strip the colon out, and replace the space with something else.
Krename won't rename the pictures with a colon. If I try to add those pictures, it will add 3-4 copies of the same photo. A directory with 160 or so pictures will quickly mushroom to over 3000 pictures to rename.
So now I have to do this from the command line. I can use the rename command, but I'm having trouble getting the exact syntax to work.
What I want to do..
1. Remove the colons from the file name.
2. Replace the space between the date and time with a dash (-)
3. Do this for all the pictures in the directory, and sub directories.
4. Not disturb the MP4 files, which are correctly named (no colons in the file name)
So I would like to have this..
Code:
2014:01:01 11:39:34.jpg
Code:
20140101-113934.jpg
Comment