I'm not clear about why you want a script to do this
since you should be able to do it with a single
exiftool command. Your biggest problem is that
the AEBBracketValue's contain slashes (ie. "+5/3"),
which of course will create additional subdirectories
when used in a filename, which isn't what you want.
To avoid this, you could create a
user-defined
tag (MyAEB)
which prints the AEBBracketValue as a floating point
with one decimal place. And you can use another user-defined
tag to set the directory name you want:
'Image::ExifTool::Composite' => {
MyAEB => {
Desire => 'AEBBracketValue',
ValueConv => '$val ? sprintf("%+.1f", $val) : "0"',
},
MyDir => {
Desire => 'AEBBracketValue',
ValueConv => '$val ? ($val > 0 ? "+AV" : "-AV") : "0"',
},
},
Then a command like this should move and rename the files as you
indicated:
exiftool "-filename</IMAGE/${MyDir}/${MyAEB}_%f.%e" /IMAGE
- Phil
|