Naming a jpeg file using the date stamp

Posted on 2016-10-15
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 24

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 24

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 @ -

Pls try and let us know.

Hope it helps.
LVL 31

Assisted Solution

by:Paul Sauvé
Paul Sauvé earned 150 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
LVL 23

Accepted Solution

Eirman earned 350 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.
Network it in WD Red

There's an industry-leading WD Red drive for every compatible NAS system to help fulfill your data storage needs. With drives up to 8TB, WD Red offers a wide array of solutions for customers looking to build the biggest, best-performing NAS storage solution.  


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 31

Assisted Solution

by:Paul Sauvé
Paul Sauvé earned 150 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 23

Assisted Solution

Eirman earned 350 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 23

Expert Comment

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

Expert Comment

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

Featured Post

Give your grad a cloud of their own!

With up to 8TB of storage, give your favorite graduate their own personal cloud to centralize all their photos, videos and music in one safe place. They can save, sync and share all their stuff, and automatic photo backup helps free up space on their smartphone and tablet.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Video conferencing solution, HD camera with zoom 2 62
Simple 3D CAD 18 102
Dashboard Camera copying files to PC (SD Card) 6 176
Repairing damaged MP4 files 4 70
The Nikon Coolpix L18 is an intuitive 8-megapixel point and shoot camera with a 3x optical zoom.  Nikon has done a good job of incorporating several features such as image stabilization, on camera red eye fixing, and a large three-inch display on th…
Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
In this second Micro Tutorial in the series,  viewers will learn more basic shortcuts and functions of Illustrator. In this tutorial you will learn about the eyedropper tool, zoom , ellipses and more.
This video teaches viewers how to process images for a time-lapse video. Programs required: Adobe Lightroom, Adobe After Effects, Video Editing Program. In Adobe Lightroom: Import sequence image files into Adobe Lightroom: Develop settings of an I…

910 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

Need Help in Real-Time?

Connect with top rated Experts

23 Experts available now in Live!

Get 1:1 Help Now