Namespace LrPhotoInfo

This namespace allows you to get information about individual photo files. These files need not be part of a Lightroom catalog.

Summary

Retrieves the file attributes that describe a photo file at a given path.

Functions

LrPhotoInfo.fileAttributes( path )
Retrieves the file attributes that describe a photo file at a given path.

First supported in version 2.0 of the Lightroom SDK.

Parameters

1. path
(string) The path of a photo file in a format understood by Lightroom (RAW, DNG, TIFF, PSD, or JPEG). If it does not identify such a file, an error occurs.

Return value

(table) A set of file attributes. The file attributes include:
  • width: Width of the photo in pixels
  • height: Height of the photo in pixels