Author Topic: How do you run a program-like command with operators?  (Read 1714 times)

New Daddy

  • Newbie
  • *
  • Posts: 1
How do you run a program-like command with operators?
« 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?

Phil Harvey

  • ExifTool Author
  • Administrator
  • ExifTool Freak
  • *****
  • Posts: 14895
    • ExifTool Home Page
Re: How do you run a program-like command with operators?
« Reply #1 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
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).