Skip to main content
Participating Frequently
May 7, 2020
Question

Exported TIFF images are actually JPEGs

  • May 7, 2020
  • 1 reply
  • 719 views

I have the following plugin code:

 

local Plugin = {
    hideSections = { "exportLocation", "fileNaming", "metadata", "video" },
    allowFileFormats = { "TIFF" },
    allowColorSpaces = nil,
    exportPresetFields = {}
}
function Plugin.startDialog( propertyTable )
    propertyTable.LR_format = "TIFF"
    propertyTable.LR_tiff_compressionMethod = "compressionMethod_None"
end
function Plugin.processRenderedPhotos( functionContext, exportContext )
    local exportSession = exportContext.exportSession
    local nPhotos = exportSession:countRenditions()

    local failures = {}
    for _, rendition in exportContext:renditions{ stopIfCanceled = true } do
        local success, pathOrMessage = rendition:waitForRender()
    end
end

 

When I run that code on OSX, the exported file will be a JPEG file, instead of, as requested, a TIFF. What is going on here? At the very least, I would expect some sort of error output, but Lightroom just happily produces a JPEG file.

 

On Windows, the code works as expected and always produces a TIFF.

This topic has been closed for replies.

1 reply

Participating Frequently
May 7, 2020

When I remove the 

allowFileFormats = { "TIFF" },

from the code, and just leave TIFF selected as the file format in the export dialog, a TIFF will be produced also. 

Participating Frequently
May 7, 2020

When I instead add

disallowFileFormats = { "DNG", "JPEG", "ORIGINAL", "PNG", "PSD" },

the exported file will again be a JPEG.