Naming a jpeg file using the date stamp

Posted on 2016-10-15
Medium Priority
Last Modified: 2016-11-04
My OS is win 10 pro 64 bit and I have many jpeg files that were taken by a Nikon Coolpix and some were taken by an LG phone.  All of them have the date stamp on them, like 12-01-13.  But I copied to my HD that they were saved in like : DSC0001.jpg.  Is there any way if I can change the file name to the one that has the date stamp as in the above example.   I guess someone has to write some sort of a routine or procedure, or can this be done an easier way, where say the file is imported one by one into an application, and the application saves the file in the date format.  Or something like that.   I have no clue on how to do it, of course the hard way is to retrieve one by one view the file, and then save it in the date format.  Thank u for your suggestions or advise.
Question by:jegajothy
  • 4
  • 3
  • 2
  • +2
LVL 33

Expert Comment

by:Dr. Klahn
ID: 41845298
A short Perl procedure using the JPEG module (Image::MetaData::JPEG) could do this relatively simply.

I would not recommend this as a first Perl project, but it is not so difficult that it would be a bad one to try.
LVL 38

Expert Comment

by:Pawan Kumar
ID: 41845309
My OS is 10. Well this is strange as I didn't face this kind of issue ever.

Connect you cell phone to computer using file transfer mode
Go to DCIM folder
Create a new folder in your harddrive
Copy images to you HardDrive Folder. You should get the same what you have in your Phone/Camera


Follow the instructions given @ - http://www.lg.com/us/support/product-help/CT10000027-1432307796561-file-media-transfer-pictures-music-etc

Pls try and let us know.

Hope it helps.
LVL 33

Assisted Solution

by:Paul Sauvé
Paul Sauvé earned 600 total points (awarded by participants)
ID: 41845313
i have done this using IrfanView batch rename.
What is IrfanView?
 IrfanView is a very fast, small, compact and innovative FREEWARE (for non-commercial use) graphic viewer for Windows 9x, ME, NT, 2000, XP, 2003 , 2008, Vista, Windows 7, Windows 8, Windows 10.

on the left-hand side of the page you will see download links for 32 bit and 64 bit versions
Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

LVL 24

Accepted Solution

Eirman earned 1400 total points (awarded by participants)
ID: 41845586
This is a good solution ... Take a free trial of flash renamer.
These are the settings needed to rename photos with the original name followed by - and the imbedded exif date.
You can use the creation or modified date if you wish.
It's a superb program! - You'll love it and probably buy it.

You will see a preview of how you files will look when you rename them.
If you make a mess of things, it has full undo feature (no matter how many thousand files you messed up).
FlashRenamer1.jpgThere are more than a hundred more EXIF naming options, many of them camera manufacturer specific (including Nixon).
It integrates nicely into Windows File Explorer (I always start it from there).

NOTE: Use it on files you have already copied to your hard disk.

Author Comment

ID: 41845631
In response to Eirman, I tried the File Renamer, but did not get the desired results, maybe I am doing it all wrong.
I have a file named as : DSCN0423 which is a jpeg file.  After renaming it,
it shows as : DSCN0423.JPGDSCN-0423.JPG and in the file explorer, it shows the date of the image as 2.9.2013 5:30 am, as
DSCN0423.JPGDSCN-0423.JPG  29.2013 5;30 AM, but the date appears as 'Date' in the File Explorer and not as newly renamed file.
Hope u can please give me the steps.  Thank u.

Author Comment

ID: 41845634
in response to Pawan, in my DCIM of the camera, it shows as eg ; DSCN0423, so when it gets copied to a dir in my HD that is the name that is assigned.

Author Comment

ID: 41845654
In response to Dr. Perl, Unfortunately I do not know how to write Perl code, and I wonder if we have any experts who could do this. Regards
LVL 33

Assisted Solution

by:Paul Sauvé
Paul Sauvé earned 600 total points (awarded by participants)
ID: 41845679
I haven't used this, but it seems to fit the bill:
Advanced Renamer - Batch rename utility
Advanced Renamer is a free program for renaming multiple files and folders at once. By configuring renaming methods the names can be manipulated in various ways.

It is easy to set up an advanced batch job using multiple methods on a large amount of files. The 14 different methods enables you to change the names, attributes, and timestamps of files in one go. The files can also be copied or moved to new locations based on information in the files.

With Advanced Renamer you can construct new file names by adding, removing, replacing, changing case, or giving the file a brand new name based on known information about the file.

Before performing the operations on the files you can verify that the output will be correct and if you perform the rename and regret it, you can undo the complete batch.

To customize your filenames even further you can use tags. Tags are used to get known information about the files. "But how does it work?" All text you write will be used as filename except for all the text in <'s and >'s. If you write something like "file_<name>" and renames a file called "notepad.exe", the result will be "file_notepad".

You can use both tags and regular text in most text boxes in Advanced Renamer. Tags are most used in the New Name Method but can be used in almost all the other methods. You can right click in a text box, and if you see the item "Insert Tag", you can use tags. Click it and you will get a window with all tags.

Here are a list of groups of tags you can use:
  Default Tags
  ID3/MP3 Tags
  Image Tags
  Date/Time Tags
  Date/Time Created Tags
  Date/Time Modified Tags
  Advanced Tags
  GPS Tags
  Video Tags
LVL 24

Assisted Solution

Eirman earned 1400 total points (awarded by participants)
ID: 41845696
Hi jegajothy

In the flash renamer settings above, I have only selected "Process Name".
Process extension is not selected.

In Free Formatting you should have   <Name> <ExifDate>
You don't have to type the tags .... Just click on the them in the menus.
You have to type the optional spaces and the - separator.

If you only some files selected, that's all that will be renamed. Select none to rename all files.

Important - keep looking at the preview column as you type
LVL 24

Expert Comment

ID: 41845827
To get the result that you got, would need something like ....
LVL 24

Expert Comment

ID: 41873668
A full solution with detailed instructions were provided by myself.

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
In this tutorial viewers will learn how to create blended and gradiated shapes in Illustrator using the blend tool Draw two shapes, one of them in a different color: Select both and create a blend by going to Object > Blend > Make: Blends can also b…
Learn the basics of inputting and editing your text components in Prezi. We will cover how to set styles, position, and group your text components. In your Prezi editor, click anywhere on the canvas to add text: A flashing cursor informs you that yo…
Suggested Courses

627 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question