Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does't support -config option #27

Closed
denis-isaev opened this issue Aug 17, 2018 · 2 comments
Closed

Does't support -config option #27

denis-isaev opened this issue Aug 17, 2018 · 2 comments

Comments

@denis-isaev
Copy link

denis-isaev commented Aug 17, 2018

When I run
exifTool.read(file, ['-config /path/to/exiftool.config', '-n'])`
get the error message: "Invalid TAG name: config"

@mceachen
Copy link
Member

read is running from within a stay-open stream, so I suspect giving a -config option there is too late.

If you use exiftoolArgs (one of the new options in the ExifTool constructor), you should be able to add your option.

See http://owl.phy.queensu.ca/~phil/exiftool/exiftool_pod.html#config-CFGFILE for details.

@denis-isaev
Copy link
Author

denis-isaev commented Aug 17, 2018

Thanks. This works (config parameter needs to be the first arg):
const exifTool = new ExifTool({ exiftoolArgs: ['-config', '/proj/ExifTool.config', '-stay_open', 'True', '-@', '-'] });
exifTool.read(file, ['-n'])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants