File DngConverter.lua

Functions

DngConverter:convertPhoto (photo, dngPath, addlOptions, metadataCache) Exiftool method to emulate exiftool session method of same name.
DngConverter:convertToDng (params) Exiftool method to emulate exiftool session method of same name.
DngConverter:initForRun () Initialization to be executed before converting a photo, or before a loop doing multiple photos.
DngConverter:new (t) Constructor for new instance.
DngConverter:newClass (t) Constructor for extending class.


Functions

DngConverter:convertPhoto (photo, dngPath, addlOptions, metadataCache)
Exiftool method to emulate exiftool session method of same name.

Parameters:

  • photo: First parameter is lr-photo, or may be named parameter table, with members: * photo (lr-photo, required) photo to be converted * dngPath (string, default=same as source, 'cept dng ext) path for converted dng. * addlOptions (string, optional) additional converter command parameters, if desired. * metadataCache (Cache, optional) if passed, include raw metadata for 'path'.
  • dngPath:
  • addlOptions:
  • metadataCache:

Usage:

    Will overwrite existing dng, if need be, so pre-check before calling if this is not acceptable. 

Return values:

  1. dngPath (string) path to converted dng, if created.
  2. message (string) error message if applicable.
  3. content (string) content of app response, if any.
DngConverter:convertToDng (params)
Exiftool method to emulate exiftool session method of same name.

Parameters:

  • params: (table, required) * photo (lr-photo, required - unless photoPath) photo to be converted * file (string, required - unless photo) path of file to be converted * dngPath (string, default=same as source, 'cept dng ext) path for converted dng. * addlOptions (string, optional) additional converter command parameters, if desired. * metadataCache (Cache, optional) if passed, include raw metadata for 'path'.

Usage:

    Will overwrite existing dng, if need be, so pre-check before calling if this is not acceptable. 

Return values:

  1. dngPath (string) path to converted dng, if created.
  2. message (string) error message if applicable.
  3. content (string) content of app response, if any.
DngConverter:initForRun ()
Initialization to be executed before converting a photo, or before a loop doing multiple photos.

Return values:

  1. status (boolean) true iff good to go.
  2. message (string) qualification if status no go.
DngConverter:new (t)
Constructor for new instance.

Parameters:

  • t:

Usage:

    pass pref-name, win-exe-name, or mac-pathed-name, if desired, else rely on defaults (but know what they are - see code). 
DngConverter:newClass (t)
Constructor for extending class.

Parameters:

  • t:

Valid XHTML 1.0!