Lightroom SDK: catalog:addPhoto fails when adding tif if jpg file present not in catalog

  • 2
  • Problem
  • Updated 5 years ago
Lightroom SDK: catalog:addPhoto fails when adding tif if jpg file present on disk but not in catalog.

To reproduce problem: create two files:
/1.x.tif
/1.x.jpg

then call catalog:addPhoto( "/1.x.tif" )

Both tif and jpg actually get added to the catalog, but the call fails.

Preferred behavior:

Only tif is added to catalog and the call succeeds.

win7/64 Lr3.4.1
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 384 Reply Likes

Posted 7 years ago

  • 2
Photo of Steve Sprengel

Steve Sprengel, Champion

  • 2652 Posts
  • 340 Reply Likes
What is your "Treat RAW+JPG as separate files" setting and does changing this setting change the behavior you're seeing?
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 384 Reply Likes
The problem only occurs when preference is set to "treat separately". - thanks Steve.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 384 Reply Likes
Problem still exists in Lr5b, and not just when adding tif, also dng...