Newbie, exiftool_config, run an external program to compute a composite tag?

Started by fmp2a, June 24, 2016, 04:22:30 AM

Previous topic - Next topic

fmp2a

Hi,

I am trying to do something a bit difficult to me.
I would like to generate a composite tag wich is calculated by an external program...

I try this code but it doesn't work.

'Image::ExifTool::Composite' => {
        T1x => {
            Require => {
                0 => 'GPSLatitude',
1 => 'GPSLongitude',
            },
ValueConv => `C:/pkg-vc12/GeographicLib-1.46/bin/GeodSolve.exe --input-string "$val[0] $val[1] 180 1000"`
}}


Some help needed. Many thanks...

Phil Harvey

Try this (it has a chance of working):

    ValueConv => '`C:/pkg-vc12/GeographicLib-1.46/bin/GeodSolve.exe --input-string "$val[0] $val[1] 180 1000"`',

The problem is that the ValueConv is a string that will be evaluated later, so you have to enclose the string in quotes.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).