0

We have an issue with our veteren lightroom plugin. Our plugin is an export filter provider that processes jpeg images post export.

The plugin worked just fine for many years but recently the "publish" functionality stopped working while the "export" functionality is OK, this is the same code.

The issue is when we call waitForRender() it returns false and the path contains the following message "An unknown error occurred. This photo was not rendered", again, the same image (and same code) works just fine with "Export."

The code was based on the code in the SDK documentation and I couldn't find any recent changes to the documentation that would indicate that the code is incorrect, still, perhaps I'm missing something here.

I would appreciate any tips or ideas how to fix/work around this issue or even just a way to contact Adobe.

Here's the code:

function MyFilterProvider.postProcessRenderedPhotos( functionContext, filterContext )

    local renditionOptions = {
        plugin = _PLUGIN,
        renditionsToSatisfy = filterContext.renditionsToSatisfy,
    }
                    
    for sourceRendition, renditionToSatisfy in filterContext:renditions(renditionOptions) do
        local success, pathOrMessage = sourceRendition:waitForRender()
        if success then
            local path = pathOrMessage
            local ext = string.lower(string.match(path,".*%.(.*)"))

            if ext == "jpeg" or ext == "jpg" then
                if processImageAtPath(path)
                    renditionToSatisfy:renditionIsDone (true,"")
                else
                    renditionToSatisfy:renditionIsDone(false, "Failed to process image: ")
                end
            else
                renditionToSatisfy:renditionIsDone (true,"")
            end
        end
    end
end
Eyal Redler
  • 135
  • 7

0 Answers0