dzigakaiser's profile

97 Messages

 • 

1.8K Points

Sat, Nov 7, 2020 5:37 PM

Closed

Answered

Lightroom Classic: Lua Plugin - Choose custom color space for export

Hello there,

I wrote a little custom export plugin with Lua and it all works nice and dandy when I set the export colorspace to "sRGB" inside the script like so:

LR_export_colorSpace = "sRGB"

Since this is how sRGB also appears in the export options GUI I was wondering if parsing a different profile would also work.

So I changed my code to another profile I have available inside LR but the jpg never gets written to disk. 

There is no error and the rest of the script is still working (creating the folder).

Now, I was hoping someone could shed some light onto this. How would you select a different export color space in the Lua script?

I assume the color spaces have some other identifier than the actual visible name.

If anyone has an idea, an example or knows the solution, please let me know!

Thanks in advance and have a nice weekend,

Dziga

Accepted Solution

Champion

 • 

6K Messages

 • 

103.7K Points

1 y ago

Ah. For all other profiles, use the full file path, e.g.

LR_export_colorSpace = "/Library/ColorSync/Profiles/REC709_GAMMA2.4.icc",

97 Messages

 • 

1.8K Points

Perfect! I had plans to try that but I guess I didn't in the end :D 

Works as it should.

Thank you!

(edited)

Champion

 • 

6K Messages

 • 

103.7K Points

1 y ago

What's the exact value you're assigning to LR_export_color_space?

97 Messages

 • 

1.8K Points

Hi John,

in this case I tried the name of my .icc profile ("photo_linear_no_conversion") which means:

LR_export_colorSpace = "photo_linear_no_conversion",

Thought, since it is the same as in the GUI it might work.

I found that according to the SDK guide I can use "sRGB", "AdobeRGB", "ProPhotoRGB" but I'd love to use custom icc profiles that I converted from cube files.