How do you run a program-like command with operators?

Started by New Daddy, June 04, 2012, 02:47:29 PM

Previous topic - Next topic

New Daddy

Is there a documentation for ExifTool?

I understand that it is a command line program, but I was wondering if you can run a program-like commands with operators.  For example, I want to populate the "FocalLength35mm" field if the camera brand matches my criteria. The ExifTool will calculate the "FocalLength35mm" by multiplying the "FocalLength" by the crop factor, which I'll hard code into the program.

Is something like this possible, or can you only run ExifTool from the command line?

Phil Harvey

ExifTool includes a Perl library, so if you program in Perl you can call the ExifTool functions directly.  In other languages you must execute exiftool as a separate process.  See the developers section of this forum for some discussions on this.

- 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 ($).