-o flag, %, $EXIF:DateTaken[YYMMDDdate format] and strftime

Discussions on NConvert - the command line tool for image conversion and manipulation

Moderators: XnTriq, helmut, xnview

Posts: 2
Joined: Tue Nov 13, 2018 7:57 pm

-o flag, %, $EXIF:DateTaken[YYMMDDdate format] and strftime

Post by freemem »


Im trying to get the -o flag to work but either I do something wrong or its a bug.
I use % to get the original filename as documentation says but I only get a underscrore and a sequence number.
I try to use $EXIF:DateTaken[date format] but cant find documentation on how to specify the format.
I have tried -o MySubFolder\$EXIF:DateTaken[YYMMDD]% and other but nothing seems to work.
Specifying -o MySubFolder\File% gives no errors but the files get named File.jpg, File_1.jpg, File_2.jpg and so on.

Is this feature working at all?

Posts: 4004
Joined: Sun Apr 29, 2012 9:45 am
Location: Cheltenham, U.K.

Re: o flag, %, $EXIF:DateTaken[YYMMDDdate format] and strftime

Post by cday »

At a quick look in the first instance, I think you need to include the extension in the -o term, at least I normally do.

And if you are using a batch file rather than the command line, you need to double the % symbol to %% to 'escape' the character in Windows cmd.exe.

I'm not familiar with EXIF but you may be able to get some information by Googling or searching the forum, if you haven't already done so.