Namespace LrExportSettings

This namespace allows you to check or set an image file format for an export operation.

Access the functions directly from the imported namespace.

Summary

Retrieves the proper file extension to use for a file format.

Functions

LrExportSettings.extensionForFormat( format, photo )
Retrieves the proper file extension to use for a file format.

First supported in version 1.3 of the Lightroom SDK.

Parameters

1. format
(string) A file format string as used by export settings. One of: 'ORIGINAL', 'JPEG', 'PNG', 'TIFF', 'PSD', or 'DNG'.
2. photo
(optional, LrPhoto) If the file format is 'ORIGINAL', a photo from which to determine the file format.

Return value

(string) The file extension to be used (such as 'jpg', 'png')

See also

LrPhoto