So far I've been trying to set the file name with 2 different commands from CreateDate:
./exiftool.exe -v "-filename <${CreateDate}.%e" -d %Y-%m-%d_%H%M%S image001.jpg
./exiftool.exe -d %Y-%m-%d_%H%M%s%%-03.c.%%e "-filename<CreateDate" image001.jpg
The first command is acknowledged with an error message:
QuoteWarning: No writable tags found - image001.jpg
======== image001.jpg
Setting new values from image001.jpg
Nothing changed in image001.jpg
0 image files updated
1 image files unchanged
The second command create filename depending on date format:
Quote%Y-%m-_%H%M%s%-000.%jpg
Here are the file details:
ExifTool Version Number : 8.56
File Name : image001.jpg
Directory : .
File Size : 54 kB
File Modification Date/Time : 2023:01:30 11:38:08+01:00
File Permissions : rw-rw-rw-
File Type : JPEG
MIME Type : image/jpeg
JFIF Version : 1.01
Exif Byte Order : Little-endian (Intel, II)
Make : Nikon
Camera Model Name : Nikon SUPER COOLSCAN 5000 ED
Orientation : Horizontal (normal)
X Resolution : 300
Y Resolution : 300
Resolution Unit : inches
Software : Adobe Photoshop Elements 2.0
Modify Date : 1971:02:09 12:05:25
Y Cb Cr Positioning : Centered
Exif Version : 0220
Date/Time Original : 1971:02:09 12:05:25
Create Date : 1971:02:09 12:05:25
Components Configuration : Y, Cb, Cr, -
Flashpix Version : 0100
Color Space : Uncalibrated
Exif Image Width : 400
Exif Image Height : 700
GPS Version ID : 2.2.0.0
GPS Latitude Ref : North
GPS Longitude Ref : East
GPS Altitude Ref : Above Sea Level
GPS Time Stamp : 10:45:17
GPS Map Datum : WGS-84
GPS Date Stamp : 1991:04:17
Compression : JPEG (old-style)
Thumbnail Offset : 740
Thumbnail Length : 5006
Current IPTC Digest : 460cf28926b856dab09c01a1b0a79077
Application Record Version : 2
Image Width : 400
Image Height : 700
Encoding Process : Baseline DCT, Huffman coding
Bits Per Sample : 8
Color Components : 3
Y Cb Cr Sub Sampling : YCbCr4:2:0 (2 2)
GPS Altitude : 0 m Above Sea Level
GPS Date/Time : 1991:04:17 10:45:17Z
GPS Latitude : 53 deg 33' 18.90" N
GPS Longitude : 9 deg 56' 41.71" E
GPS Position : 53 deg 33' 18.90" N, 9 deg 56' 41.71" E
Image Size : 400x700
Thumbnail Image : (Binary data 5006 bytes, use -b option to extract)
What am i doing wrong?
Working on Windows 11 in Git bash and/or Powershell.
What operating system and shell are you using? On Mac/Linux you need single quotes (see my signature).
- Phil
As described...
QuoteWorking on Windows 11 in Git bash and/or Powershell.
Sorry. Missed that.
You need single quotes in bash, and I think in Powershell too.
- Phil
Okay, worked :)
Or a backtick before the dollar sign for PS.
Still trying to figure out how to quote things on PS. I had assumed it would be similar to bash, but nope, PS has to do it's own thing :(