ExifTool Forum

ExifTool => Newbies => Topic started by: New Daddy on June 04, 2012, 02:47:29 PM

Title: How do you run a program-like command with operators?
Post by: New Daddy on June 04, 2012, 02:47:29 PM
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?
Title: Re: How do you run a program-like command with operators?
Post by: Phil Harvey on June 05, 2012, 07:41:17 AM
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