I am trying to get original file name.
workflow like this:
a. Take photos with canon eos 5 mk3 attached(tethered) to CaptureOne program.
b. Capture one changes its name to mm_hh-mm_#####.JPG
c. files arr saved to specific directory in NAS.
d. open files to select one then change it to customername_mobile_type.jpg
While reading data from exiftool, I found that file contains original file name(mm_hh-mm_#####.JPG) at slices group name.
Some of them is containing, but some are not.
1. Is there any better way to get original filename using exiftool?
2. I would like to list them if slices group name has numeric value like original( mm_hh-mm_##### format) not (str_000000000000_str.jpg)
exiftool -p -r -if "$slicesgroupname" -slicesgroupname /path/to/folder/.
but $slicegroupname come up with nothing. I guess some prefix like 'xmp:' or 'iptc:' should be attached.
3. If the condition is matched, I would like to copy slicesgroupname to source tag.
Can you help me?
Quote from: curtistealer on April 22, 2022, 12:23:46 AM
2. I would like to list them if slices group name has numeric value like original( mm_hh-mm_##### format) not (str_000000000000_str.jpg)
exiftool -p -r -if "$slicesgroupname" -slicesgroupname /path/to/folder/.
but $slicegroupname come up with nothing. I guess some prefix like 'xmp:' or 'iptc:' should be attached.
One problem with this command is that you have the
-p (
-printFormat) option (https://exiftool.org/exiftool_pod.html#p-FMTFILE-or-STR--printFormat) but without
FMTFILE or
STR second required parameter. In the case of this command, the
-r is treated as that second parameter, so no recursion actually takes place.
If
SlicesGroupName exists then
exiftool -r -if "$SlicesGroupName" -SlicesGroupName /path/to/files/will display it. Tags do not require the group name prefix to be displayed.