renm
renm
There's a much easier way to get the formatted filename:
Code: Select all//@include "xlib/stdlib.js"
//@include "xlib/metadata.js"
function getNewFileName(doc) {
var exif = new EXIF(doc.info.exif);
var dstr = exif.get("Date Time Original");
var date = Stdlib.parseISODateString(dstr);
return date.strftime("%d-%b-%Y %Hh%Mm%S");
};
This works with all three images that you posted.
-X
Code: Select all//@include "xlib/stdlib.js"
//@include "xlib/metadata.js"
function getNewFileName(doc) {
var exif = new EXIF(doc.info.exif);
var dstr = exif.get("Date Time Original");
var date = Stdlib.parseISODateString(dstr);
return date.strftime("%d-%b-%Y %Hh%Mm%S");
};
This works with all three images that you posted.
-X