Custom exif date taken renaming

Javascript renaming examples. Javascript renaming is supported in version 3 or newer.

Custom exif date taken renaming

Postby HummusLova » Thu Jul 07, 2016 7:43 pm

Hi,

First of all, thank you for creating such a fantastic utility, great tool!

I wanted to ask if there is a possibility to rename files (replace the entire filename except for the extension) as follows:

Old Filename: whatever_this_will_be_removed_anyway.jpg

New Filename: YYYY_MM_DD_HH.MM.SS_CameraModel.jpg

Where:

Y - Year
M- Month
D- Day
H - Hour
M - Minute
S - Second
CameraModel - Camera model (if populated in the exif)
HummusLova
 
Posts: 2
Joined: Thu Jul 07, 2016 7:25 pm

Re: Custom exif date taken renaming

Postby therube » Thu Jul 07, 2016 8:43 pm

Enable EXIF, Renaming Options (menu item) -> ID3/Exif...

5:Remove
First n: 260

8:Auto Date
Mode: Prefix
Type: Taken (Original) (or which suits you)
Fmt: Custom
Custom: %Y_%m_%d_%I.%M.%S


CameraModel - Camera model (if populated in the exif)

I don't think it will handle that.
therube
 
Posts: 389
Joined: Mon Jan 18, 2016 6:23 pm

Re: Custom exif date taken renaming

Postby HummusLova » Thu Jul 07, 2016 8:50 pm

That is absolutely good enough, many thanks, the CameraModel would have just been a bonus :)

I did see the custom fields before but omitted to use the '%' character and thus didn't work and I started to play around with Javascript.
HummusLova
 
Posts: 2
Joined: Thu Jul 07, 2016 7:25 pm

Re: Custom exif date taken renaming

Postby Admin » Thu Jul 07, 2016 10:30 pm

Camera model is %mo in Add (7) (see more info in help file) or indeed exif("%mo") in Javascript.
Admin
Site Admin
 
Posts: 1502
Joined: Tue Mar 08, 2005 8:39 pm

Re: Custom exif date taken renaming

Postby jewelzeyes » Mon Mar 12, 2018 9:22 pm

Why is the Hour represented as an I and not an H?
jewelzeyes
 
Posts: 1
Joined: Mon Mar 12, 2018 9:17 pm

Re: Custom exif date taken renaming

Postby Admin » Mon Mar 12, 2018 11:43 pm

Hi,

%H : Hour in 24-hour format (00-23)

%I : Hour in 12-hour format (01-12)
Admin
Site Admin
 
Posts: 1502
Joined: Tue Mar 08, 2005 8:39 pm


Return to Javascript Renaming