Copy link to clipboard
Copied
I'm working on an automatic image export plugin. Now exported as a JPEG file, now I want it to be watermarked as well. This is my setup code local exportSession = LrExportSession({
photosToExport = photos,
exportSettings = {
LR_collisionHandling = "rename",
LR_export_bitDepth = "8",
LR_export_colorSpace = "sRGB",
LR_export_destinationPathPrefix = outputFolder,
LR_export_destinationType = "specificFolder",
LR_export_useSubfolder = false,
LR_format = "JPEG",
LR_jpeg_quality = 1,
LR_minimizeEmbeddedMetadata = true,
LR_outputSharpeningOn = false,
LR_reimportExportedPhoto = false,
LR_renamingTokensOn = true,
-- LR_size_doConstrain = true,
LR_size_doNotEnlarge = true,
LR_size_maxHeight = 2048,
LR_size_maxWidth = 2048,
LR_size_units = "pixels",
LR_tokens = "{{image_name}}",
LR_useWatermark = true,
LR_watermarking_id = "<WatermarkRyu>"
}
})
Which with regards to watermarks I set just this. I did and it didn't watermark the photos for me. Where did I go wrong? Where should I add more code?
Copy link to clipboard
Copied
If you haven't done this already, create and test and Export preset in the Export window. Then right-click the preset in the Export window's Preset window, do Show In Finder/Explorer, and edit the .lrtemplate file. Use those settings there as your starting point. The individual settings aren't documented, nor their interaction, so this method of reverse-engineering seems to be the only practical way.