Lightroom Classic 14.5 (Windows) — SDK ignores TIFF color profile (always sRGB) and can’t access Exp
Title: Lightroom Classic 14.5 (Windows) — SDK ignores TIFF color profile (always sRGB) and can’t access Export Presets from Lua
Environment
Windows 10/11
Lightroom Classic 14.5.1 (English UI; previously tried French too)
Lightroom SDK (Lua) as shipped with Lr 14.x
Goal
Programmatically export TIFF 16-bit with ProPhoto RGB profile via plugin (no UI interaction). If the profile can’t be injected through exportSettings, we’d like to export via a user Export Preset object (TIFF + ProPhoto) from Lua.
What works
Exporting manually through the Export dialog using a user preset (TIFF 16-bit + ProPhoto RGB) produces correct ProPhoto-tagged TIFFs.
Our plugin can export TIFF 16-bit and control destination, naming, compression, etc.
What fails
When we pass color-profile keys inside exportSettings to LrExportSession, the resulting TIFFs are still sRGB:
LR_format="TIFF" → respected
LR_tiff_bitDepth=16 → respected
LR_tiff_compressionMethod="compressionMethod_None" → respected
But LR_outputProfile="C:\\Windows\\System32\\spool\\drivers\\color\\ProPhoto.icm" and/or LR_outputProfileName="ProPhoto RGB" → ignored (files come out as sRGB)
We cannot obtain an Export Preset object from Lua on this build:
pcall(function() return catalog:getExportPresets() end) → error (type=string)
pcall(function() return LrApplication.exportPresets() end) → error (type=string)
→ Therefore we can’t do exportPreset = <presetObject> as a workaround.
Minimal reproducible test (plugin below)
The test writes 3 TIFFs for the selected photo, trying three profile variants:
A_nameOnly: only LR_outputProfileName = "ProPhoto RGB"
B_pathOnly: only LR_outputProfile = "C:\\Windows\\System32\\spool\\drivers\\color\\ProPhoto.icm"
C_both: both keys together
All other keys are minimal and valid.
Result on our system: all 3 outputs are TIFF 16-bit but tagged sRGB.
Questions
Is this a known regression/limitation on LrC 14.5.x where LR_outputProfile / LR_outputProfileName inside exportSettings are ignored for TIFF?
Is there a documented alternative key (or combination) that reliably forces ProPhoto RGB for TIFF from Lua?
Under what conditions should catalog:getExportPresets() / LrApplication.exportPresets() work in 14.5.x? Is there any configuration/state that disables these APIs?
What is Adobe’s supported method to trigger a TIFF+ProPhoto export from a plugin if exportSettings ignores color profile and preset APIs are unavailable?
Thanks in advance. We can provide logs and the exact TIFFs if helpful.
