API Docs for: 2.0.0

Class exiftool

Class defined in: src/node-exiftool.js:11

Metadata processing using ExifTool ExifTool by Phil Harvey: http://www.sno.phy.queensu.ca/~phil/exiftool/

buffer( source, callback )
src/node-exiftool.js:172

Process a buffer

Parameters:
  • source <Buffer>

    file content to be processed

  • callback <Function>

    executed when done, done(error, metadata)

Object bufferSync( source )
src/node-exiftool.js:152

Process a buffer synchronously

Parameters:
  • source <Buffer>

    file content to be processed


Returns: <Object>

return object as {err:String, metadata:Object)

file( filename, done )
src/node-exiftool.js:69

Process a file, using exec method

Parameters:
  • filename <String>

    name of the file to be tested

  • done <Function>

    executed when done, done(error, metadata)

fileSpawn( filename, done )
src/node-exiftool.js:30

Process a file, using spawn method

Parameters:
  • filename <String>

    name of the file to be tested

  • done <Function>

    executed when done, done(error, metadata)

Object fileSync( filename )
src/node-exiftool.js:130

Process a file synchronously watch for non-escaped filename when using spawn-sync.spawnSync node v12 is good

Parameters:
  • filename <String>

    name of the file to be tested


Returns: <Object>

return object as {err:String, metadata:Object)