Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 50
  • Last Modified:

Naming a jpeg file using the date stamp

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.
  • 4
  • 3
  • 2
  • +2
4 Solutions
Dr. KlahnPrincipal Software EngineerCommented:
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.
Pawan KumarDatabase ExpertCommented:
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.
Paul SauvéRetiredCommented:
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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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.
jegajothyAuthor Commented:
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.
jegajothyAuthor Commented:
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.
jegajothyAuthor Commented:
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
Paul SauvéRetiredCommented:
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
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
To get the result that you got, would need something like ....
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.

  • 4
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now