Exiftool run command functionality?

Started by Tom Cunningham, June 20, 2023, 09:24:59 PM

Previous topic - Next topic

Tom Cunningham

Maybe I'm not looking hard enough, but is there a way to get exiftool to always run with a particular set of options? I'm thinking of cases like with Geosetter where exiftool is invoked indirectly and one might like to use the -m option to ignore/fix minor errors.

StarGeek

There are some options that you can set in your .ExifTool_config file.  All the way at the bottom is the
Image::ExifTool::UserDefined::Options =
section.  You would use the IgnoreMinorErrors option and set it to 1.  Though I don't recommend doing this as the -m (-ignoreMinorErrors) option can affect other processing and you might not see warnings that you should.

You can also use the -@ (Argfile) option and create an ArgFile to run certain commands.  There are sample ArgFiles on GitHub, though those are used to copy tags from one group to the corrisponding tags in another group.  FAQ #29 is important when writing an ArgFile.

Geosetter is using an ArgFile when it gives exiftool commands, though it is more complicated as it also uses the -stay_open option to keep exiftool running in the background.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Tom Cunningham

Quote from: StarGeek on June 20, 2023, 09:57:15 PMThere are some options that you can set in your .ExifTool_config file.  All the way at the bottom is the
Image::ExifTool::UserDefined::Options =
section.  You would use the IgnoreMinorErrors option and set it to 1.  Though I don't recommend doing this as the -m (-ignoreMinorErrors) option can affect other processing and you might not see warnings that you should.

Yeah, I can see how that might be problematic if it affects every copy of exiftool that runs on the machine.

Quote from: StarGeek on June 20, 2023, 09:57:15 PMYou can also use the -@ (Argfile) option and create an ArgFile to run certain commands.  There are sample ArgFiles on GitHub, though those are used to copy tags from one group to the corrisponding tags in another group.  FAQ #29 is important when writing an ArgFile.

Geosetter is using an ArgFile when it gives exiftool commands, though it is more complicated as it also uses the -stay_open option to keep exiftool running in the background.

Again, the issue here is how do I get an ArgFile specified for an exiftool that I'm indirectly invoking?

Geosetter has the capability to process exiftool options before and after its own commands, but not during or in addition to its own commands.

StarGeek

#3
Setting the -m option in GeoSetter is easy.  Just check the box


For options that could be set by the .ExifTool_config file, you would probably just need a copy of it in the same directory as the exiftool GeoSetter is using.  That's where exiftool will look for it.

Beyond that, there probably isn't much else beside the before and after commands in GeoSetter.

Edit: Are there any other options that can't be run before or after?
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Tom Cunningham

Quote from: StarGeek on June 21, 2023, 02:39:21 AMSetting the -m option in GeoSetter is easy.  Just check the box

Wow, StarGeek, missed that one, thanks for pointing it out!

StarGeek

You might want to take a look at GeoTagNinja, created by user nemethv on here.  He's been very responsive to suggestions and is constantly updating it.
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype