Lightroom: How do I add Keywords to DNG / JPG image pair at same time?

  • 1
  • Question
  • Updated 7 years ago
  • (Edited)
Does anyone know how to add keywords to the DNG / JPG image pair simultaneously?

For this to work, do both the DNG and JPG need to be visible in the path in the Lightroom Library Panel? Because currently, the path only lists the DNG and not the JPG, even though they are part of the same image pair. I am hoping there's a very simple solution to this...I haven't found it yet though. Thx in advance.
Photo of Franklin

Franklin

  • 15 Posts
  • 0 Reply Likes

Posted 7 years ago

  • 1
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 385 Reply Likes
I have a solution, but you're not going to like it:

Split the JPG from DNG and handle as separate photo, instead of sidecar.

When handled as sidecar, JPG is like a tumor - its there but it doesn't do ya any good. If you want to do anything with it other than know its there, or access it using *other* software, then you need to break it out.
Photo of Franklin

Franklin

  • 15 Posts
  • 0 Reply Likes
Yes, actually, I didn't clarify well in my above post.

I shoot with a Pentax K-X DSLR, I have set it to simultaneously record a DNG and a JPG, so these are two seperate files that I am talking about: e.g., IMG0001.DNG and IMG0001.JPG.

Right now, the way it's working for me is that despite both of those images being in the same Windows 7 folder and then imported into my Lightroom Catalogue, only the .DNG is listed in the Lightroom - Library Panel - Grid View, the .JPG is not. It seems that when I select the DNG file to keyword it, it is not selecting the associated JPG file and consequently only the DNG receives the keywords that I am applying. How do I get it to select both or at least how can I get it to list both for me to select manually? Hopefully i've explained that properly. Thx.
Photo of Franklin

Franklin

  • 15 Posts
  • 0 Reply Likes
By sidecar, I had assumed you meant the JPG that is embedded in the DNG, or did you mean something else. If so, how do you split the JPG from the DNG? Thx.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 385 Reply Likes
By sidecar I meant separate file - same base name but different extension *and* viewed by Lightroom as a sidecar, instead of a separate photo. There is a Lightroom preference that dictates how it will handle the pair upon import, but I don't remember what it defaults to.

Look in Metadata section of right-hand library panel - what does it say for 'Sidecar Files'?

Note: At the moment, short of re-importing, I can't see how to divorce the sidecar from its mate. ( I could have sworn that deleting the sidecar would upset Lightroom and give an option for dealing, but it right now it seems happy enough with the sidecar gone, hmm...) .

But it should show in grid view asdf.DNG+JPEG if it recognizes your jpeg as a sidecar - if not, are you sure the jpeg has been imported?
Photo of Jim Wilde

Jim Wilde

  • 136 Posts
  • 26 Reply Likes
There is an option in the General Tab of the Lightroom Preferences (Edit>Preferences on Windows, Lightroom>Preferences on a Mac), which is "Treat JPEG files next to raw files as separate photos".

If unchecked, which is how you probably have it set, the Raw+Jpeg files are treated as a primary Raw file (DNG in your case) and an associated Jpeg 'sidecar' file. However, that sidecar file is, as Rob said, pretty useless as far as Lightroom is concerned, you cannot separately access it, although should you rename, move, or delete the DNG file within Lightroom the same action will be applied to the Jpeg sidecar.

When checked however, that option will allow you to import and independently process both the DNG and the associated Jpeg. It sounds like that's the way you should set that option.

One problem, however, is that checking the option does NOT work retrospectively on already imported 'pairs'.....to 'split' them into separate files you need to first check that option, then synchronise the folders that contain the existing 'pairs', which will allow Lightroom to see and import the Jpegs as new files.
Photo of Franklin

Franklin

  • 15 Posts
  • 0 Reply Likes
Although the path in Library Panel only shows the .DNG, holding the pointer over the file shows temporary pop up that says .DNG + JPG, so it's there / was imported.

It also says JPG under sidecar files in metadata panel to right.

So I guess the keywords simply are not written to the JPG sidecar and that's it...unfortunately. Thx for the clarification. If you come across more info, it would be very helpful. Thx.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 385 Reply Likes
Yeah, I guess there really is no way to split them short of re-importing.

It's entirely possible it could be done using SQL on the lrcat file, but I've not investigated...

Consider checking the box in preferences/general for next time:
Photo of Jim Wilde

Jim Wilde

  • 136 Posts
  • 26 Reply Likes
I don't know what more info there is. It's NOT imported in the sense that you can't see it, edit it, tag it....all that happens (with that option unchecked) is that Lightroom recognises the existence of the Jpeg file, adds the reference to the sidecar in the DNG metadata, and shows DNG+Jpeg in the Info overlay. NOTHING will get written to the jpeg, as I said earlier the ONLY action that Lightroom will perform would be to move, rename or delete it if you do the same thing to the DNG first.

You could deleted that jpeg outside Lightroom and get no warnings at all from inside Lightroom.....it really doesn't care that much about the jpeg until you import it as a separate file.
Photo of Franklin

Franklin

  • 15 Posts
  • 0 Reply Likes
Thanks both for the very useful feedback. BTW Jim, I hadn't actually, for some reason, seen your replies before responding Re: 'other info'.

It all makes a lot more sense now. I will have to think about the benefits / drawbacks of splitting the two at import. It's good to know it's possible though.

Thanks again.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 385 Reply Likes
I thought about rolling it into a more general purpose script, but didn't, yet...

I sometimes wish Adobe would post some scripts in the labs that do stuff like this - I'm sure Dan Tull could invent scripts like this in his sleep...

For those things they haven't gotten around to rolling up a UI for...

Maybe they're afraid somebody will foul up their catalog and sue them..., or slander/libel them...

You could try to sue me, but you won't get much ;-}
I already get slandered/libeled in the forums ;;-}}
R
Photo of Franklin

Franklin

  • 15 Posts
  • 0 Reply Likes
Maybe you could put together some type of Lightroom 'Handy Utilities' Plugin and charge a few bucks for it. I am sure there are lots of people out there who would be interested. Even $5 per could add up.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 385 Reply Likes
We'll see - thanks for the idea.
Photo of Jim Wilde

Jim Wilde

  • 136 Posts
  • 26 Reply Likes
In the testing that I've done (Win7, 32bit, LR3.5, CR2+Jpeg), messing around with the catalog using an sqlite app is just not necessary.

As I said in my earlier post, simply check the "Separate photos" option, then synchronise the folder(s) containing the 'pairs'. You should find that you can then import the associated jpegs, and in doing so the jpeg 'sidecar' status on the Raw will be removed, the Info Overlay will revert to Raw only.....in other words Lightroom no longer sees them as a pair.

I've tested this several times, and it works like that each time. Not tested with DNG+Jpeg, but can't see any reason why that also wouldn't work.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 385 Reply Likes
Jim - thanks for re-pointing that out - clearly the better solution...

I'm withdrawing my previously posed solution/comment above.
Photo of Jonas Funkquist

Jonas Funkquist

  • 1 Post
  • 0 Reply Likes
Maybe this is known stuff, but anyway.

If you like to keep the dng and the jpg together, which is convenient for the overview, I found that you could easily create stacks of the pictures automatically based on shooting time (Meny Photo/Create stack ...)

If you first separate the dng and the jpg as described above, you can apply this function with a very small time between stacks (I used 1 second). Any kewords applied to the selected stacks is then added to both the dng and the jpg (and automatically written to the file if that option is selected in Catalog settings).

Ps. I am using a Swedish version of Lightroom so my translations may not be 100 % correct.