Author Topic: importing metadata from PM to Lightroom resets edits?  (Read 5713 times)

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
importing metadata from PM to Lightroom resets edits?
« on: February 07, 2021, 03:27:48 PM »
Hi gurus,
I'm shooting JPEGs (not RAW). When I do some edits in Lightroom (crops, exposure etc)
I then do a "Save" - which if was RAW, would update the XMP file.

I then add some metadata eg caption in PM to the file, and
when I then Read the Metadata, the edits I made are reset.

However, this reset only happens to some of the JPEGs that I've edited, but not all.
So I'm trying to figure out why this happens to some but not all the JPEGS that I've edited.

Can anyone shed light on this?

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: importing metadata from PM to Lightroom resets edits?
« Reply #1 on: February 07, 2021, 04:29:56 PM »
I'm shooting JPEGs (not RAW). When I do some edits in Lightroom (crops, exposure etc)
I then do a "Save" - which if was RAW, would update the XMP file.

I then add some metadata eg caption in PM to the file, and
when I then Read the Metadata, the edits I made are reset.

However, this reset only happens to some of the JPEGs that I've edited, but not all.
So I'm trying to figure out why this happens to some but not all the JPEGS that I've edited.

Can you share a before and after version of your JPEGs that have lost their edits?  Use the 'Attachments and other options' link when you're composing your reply to this message and there you'll be able to upload your JPEGs.

Thanks,

-Kirk

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Re: importing metadata from PM to Lightroom resets edits?
« Reply #2 on: February 08, 2021, 04:46:10 AM »

Can you share a before and after version of your JPEGs that have lost their edits?  Use the 'Attachments and other options' link when you're composing your reply to this message and there you'll be able to upload your JPEGs.

Thanks,

-Kirk

So I want to be clear exactly what two versions you want. Is it:
version 1 - The JPEG with the mods from LR before PM adds the metadata
version 2 - The JPEG after adding the metadata in LR (which when synced in LR, the edits are lost)

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: importing metadata from PM to Lightroom resets edits?
« Reply #3 on: February 08, 2021, 09:09:55 AM »

Can you share a before and after version of your JPEGs that have lost their edits?  Use the 'Attachments and other options' link when you're composing your reply to this message and there you'll be able to upload your JPEGs.

So I want to be clear exactly what two versions you want. Is it:
version 1 - The JPEG with the mods from LR before PM adds the metadata
version 2 - The JPEG after adding the metadata in LR (which when synced in LR, the edits are lost)

Almost:

version 1 - The JPEG with the mods from LR before PM adds the metadata
version 2 - The JPEG after adding the metadata in PM (which when synced in LR, the edits are lost)

Thanks,

-Kirk

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Re: importing metadata from PM to Lightroom resets edits?
« Reply #4 on: February 08, 2021, 03:27:54 PM »
Thanks Kirk,
I've sent you a PM with a link to the two images.

I have a hypothesis. If the only edit to the JPEG is a crop done in LR, syncing metadata changes done by PM will reset the crop.
If there are other edits, eg exposure, tone curve, these, including a crop, is preserved.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: importing metadata from PM to Lightroom resets edits?
« Reply #5 on: February 08, 2021, 05:58:05 PM »
Thanks Kirk,
I've sent you a PM with a link to the two images.

I have a hypothesis. If the only edit to the JPEG is a crop done in LR, syncing metadata changes done by PM will reset the crop.
If there are other edits, eg exposure, tone curve, these, including a crop, is preserved.

Very odd.  Both the before and after images have a crop in them.  The after image's crop has a slightly different rotation (0.65 vs 0.652484).  But neither crop is out of bounds so neither should be rejected.

-Kirk

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Re: importing metadata from PM to Lightroom resets edits?
« Reply #6 on: February 08, 2021, 05:59:39 PM »
Try importing them into Lightroom

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: importing metadata from PM to Lightroom resets edits?
« Reply #7 on: February 08, 2021, 07:49:41 PM »
Try importing them into Lightroom

I believe you already.  I can tell you that the metadata has not become corrupted in any way.

Another metadata change to the file is that I see your after image has IPTC metadata in it as well as XMP.  It may be that the IPTC data is being preferred over the XMP in this case.  If you don't absolutely need IPTC (it's really not used much anymore) then I suggest setting PM to not add IPTC data (Preferences->IPTC/XMP).

-Kirk

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Re: importing metadata from PM to Lightroom resets edits?
« Reply #8 on: February 08, 2021, 07:55:56 PM »
But aren't captions etc that I add in PM all IPTC?
I might be misunderstanding your suggestion.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: importing metadata from PM to Lightroom resets edits?
« Reply #9 on: February 08, 2021, 08:45:37 PM »
But aren't captions etc that I add in PM all IPTC?
I might be misunderstanding your suggestion.

There are three types of metadata: EXIF (camera data), IPTC (older user metadata standard), and XMP (current metadata standard).

I am suggesting that you no longer have PM create IPTC metadata in your images.  XMP will always be created.

-Kirk

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Re: importing metadata from PM to Lightroom resets edits?
« Reply #10 on: February 08, 2021, 10:03:26 PM »
No, disabling embedded IPTC didn't work. This is my test:
1. Import JPEG into Lightroom
2. Do a crop
3. Save
4. Add a caption in PM to JPEG
5. Do a "Read Metadata from File"
6. Observe that the crop done in step 2 is lost when the caption is read in.

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: importing metadata from PM to Lightroom resets edits?
« Reply #11 on: February 09, 2021, 09:35:58 AM »
No, disabling embedded IPTC didn't work. This is my test:
1. Import JPEG into Lightroom
2. Do a crop
3. Save
4. Add a caption in PM to JPEG
5. Do a "Read Metadata from File"
6. Observe that the crop done in step 2 is lost when the caption is read in.

Perhaps it is a problem with Lightroom.  I can bring your images (before and after) into the ACR plugin in Photoshop and the crops are still there.

-Kirk

Offline sydlow

  • Newcomer
  • *
  • Posts: 31
    • View Profile
Re: importing metadata from PM to Lightroom resets edits?
« Reply #12 on: February 09, 2021, 12:53:44 PM »
Photoshop doesn't deal with metadata like captions. So it is something with LR.

It's adding the metadata outside of LR and then Reading the Metadata via LR that is reseting the crop.
If there are other changes eg exposure, tone curve in addition to the crop, its not affected.

I've got a workaround now which is to make a change to say the white balance of +1 to all the images.
This will allow the crop to not be reset. If I really wanted to I can do a -1 after the metadata has been read in.

No need to spend any more cycles on this one, but thanks for your investigation.