Skip to main content
Known Participant
June 24, 2022
Question

Export Plugin creates 1px images

  • June 24, 2022
  • 1 reply
  • 839 views

Hey all, 

With my plugin (evlaa), I run some export to create online galeries. 
Unfortunately, There is a bug since the 11.4 version of Lightroom Classic and the expoorted images are only a 1px large gray square. 

Do you have any idea on what's going on?

 

Here is the code I'm using. 

 

 

local export_session = LrExportSession{
    photosToExport = { photo },
    exportSettings = {
      -- temp folder
      LR_export_destinationType ="tempFolder",
      LR_export_destinationPathPrefix = Utils.getTmpDir(),

      -- full size jpeg
      LR_format = "JPEG",  
      LR_export_colorSpace = "sRGB",  
      LR_jpeg_quality = 1,  
      LR_size_doConstrain = LR_size_doConstrain,
      LR_jpeg_useLimitSize = false,
      LR_size_doNotEnlarge = LR_size_doNotEnlarge,
      LR_size_maxWidth = LR_size_maxWidth,
      LR_size_maxHeight = LR_size_maxHeight,
      LR_size_resizeType = LR_size_resizeType,
      LR_size_units = LR_size_units,


      -- no watermark for delivery
      LR_useWatermark = LR_useWatermark,
      LR_watermarking_id = LR_watermarking_id
    }
  }


export_session:doExportOnCurrentTask()
  for i, rendition in export_session:renditions() do
    local success, pathOrMessage = rendition:waitForRender()
  ...

 

 

 

Thank yoou so much for yoour help 

Martin

 

This topic has been closed for replies.

1 reply

Adobe Employee
June 26, 2022

Can you check your resizing paramters ? This case could happen when "LR_size_maxWidth" and "LR_size_maxHeight" are invalid.

Known Participant
June 27, 2022

Hello MaithreyaS, 

Thank you for your reply. Just for the context, this plugin is working well in the 11.3 version of Lightroom. 
That's why I'm pretty sure it's link to the last version (11.4). 
But I didn't find anything in the release that could introduce this issue. 

The maxWidth and maxHeight is a number chosed by the user to resize the images. (ex: 1500px). 

Martin

johnrellis
Legend
June 28, 2022

Use a debugger or print statements to post here the actual value of "exportSettings" passed to LrExportSession during execution.