JScript EXIF

From RealWorld Wiki

Jump to: navigation, search
RealWorld scripting reference

EXIF is an interface wrapper accessible as a property of the Document object that makes the EXIF data accessible to scripts.

[edit] Methods and properties

  • bool Exists (get) - returns true if EXIF data are available in current document.
  • string GetValueByName(string tagName) - returns value of the EXIF tag specified byt tagName or null.

[edit] Example

// display a message with camera model if it exists
if (Document.EXIF != null && Document.EXIF.Exists)
  Application.MessageBox(Document.EXIF.GetValueByName("Model"), "Model", false);
Personal tools