Solved

Naming a jpeg file using the date stamp

Posted on 2016-10-15
11
20 Views
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.
0
Comment
Question by:jegajothy
  • 4
  • 3
  • 2
  • +2
11 Comments
 
LVL 23

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.
0
 
LVL 17

Expert Comment

by:Pawan Kumar Khowal
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

OR

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.
0
 
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.
http://www.irfanview.com/

on the left-hand side of the page you will see download links for 32 bit and 64 bit versions
0
 
LVL 23

Accepted Solution

by:
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.
0
 

Author Comment

by:jegajothy
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.
0
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 

Author Comment

by:jegajothy
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.
0
 

Author Comment

by:jegajothy
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
0
 
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.
https://www.advancedrenamer.com/
Tags

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
0
 
LVL 23

Assisted Solution

by:Eirman
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
0
 
LVL 23

Expert Comment

by:Eirman
ID: 41845827
To get the result that you got, would need something like ....
<Name><Name>-<ExifTime>
0
 
LVL 23

Expert Comment

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

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Keep your audience engaged and get the most out of your next presentation with these quick Prezi tips.
Many programs have tried to outwit PowerPoint in terms of technology and skill. These programs, however, still lack several characteristics that PowerPoint has possessed from the start. Here's why PowerPoint replacements won't entirely work for desi…
In this Micro Tutorial viewers will learn the basic shortcuts and functions of Illustrator. The viewer will learn about the paintbrush tool, anchor points, font sizing, and more.
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…

707 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

15 Experts available now in Live!

Get 1:1 Help Now