Go Premium for a chance to win a PS4. Enter to Win


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 30

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 35

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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

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…
How to take pictures with depth using iOS 10
In this Micro Tutorial viewers will learn the basic shortcuts and functions in InDesign.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses
Course of the Month13 days, 12 hours left to enroll

963 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