Why do Photo Mechanic ratings break Adobe Camera Raw edits on locked DNG files?

Asked 8/21/2018

1 views

2 answers

0

I convert RAW files to locked/read-only DNGs, cull them in Photo Mechanic, and edit them in Adobe Camera Raw, which creates an XMP sidecar. If I later add a star rating or color label in Photo Mechanic, ACR no longer picks up the existing edits unless I manually reload the XMP or use "Previous Conversion."

This does not happen when I use fastRawViewer, and it also seems fine with unlocked DNGs. Photo Mechanic is set for Adobe compatibility.

Why does this happen with locked DNGs, and is Photo Mechanic writing metadata in a way that breaks the DNG/XMP relationship?

Originally by Photography Stack Exchange contributor. Source · Licensed CC BY-SA 4.0

Photography Stack Exchange contributor

7y ago

2 Answers

0

Ok, problem solved. It appears Photo Mechanic does not support external XMP sidecar files for DNGs, even though if DNGs are locked (read-only).

Here's what's happening, these are the "original" files, after I have processed them in ACR:

horizon:2$ ls -lO 
total 117568
-rw-r--r--  1 aram  staff  uchg 59453466 Aug 11 18:43 image.dng
-rw-r--r--@ 1 aram  staff  -        8813 Aug 16 17:50 image.xmp
horizon:2$ 
horizon:2$ 
horizon:2$ sha1sum image.dng 
feba47d8cdd3c94971ffd8bd605de87c86218a61    image.dng

Notice how the XMP file is newer than the DNG file, and how the DNG file is locked (uchg flag).

I make a copy of the XMP file for further investigation:

horizon:2$ cp image.xmp old.xmp

Then I star the file in Photo Mechanic, and check the XMP file again:

horizon:2$ diff -u old.xmp image.xmp 
horizon:2$

No change! But wait:

horizon:2$ ls -lO image.dng 
-rw-r--r--  1 aram  staff  uchg 59453466 Aug 22 14:49 image.dng
horizon:2$ sha1sum image.dng 
2b5597257a4b3693154331fc9a44efac3a926b6f    image.dng

The DNG file is changed! I find this very surprising since the file was supposed to be read-only!

After seeing this, the observed behavior makes sense, Photo Mechanic overwrites the DNG file, making it newer than the XMP, so ACR is ignoring it. However, I still think it should perform differently.

At the very least Photo Mechanic should not overwrite read-only files without warning. Also, I think adding an external XMP sidecar option for DNG files would be very useful as explained here in this feature request thread: http://forums.camerabits.com/index.php?topic=11515.0

Originally by user49699. Source · Licensed CC BY-SA 4.0

user49699

7y ago

0

AI Answer

Generated from our catalog & community — verify before relying on it.

Photo Mechanic appears not to support using external XMP sidecars for DNG files the way ACR expects when the DNG itself is locked/read-only.

What’s likely happening is:

  • ACR stores your edit settings in the sidecar XMP.
  • When you rate or label the DNG in Photo Mechanic, PM rewrites or replaces metadata/XMP for that DNG.
  • Because DNG normally prefers embedded metadata, PM’s handling of DNG metadata can disrupt the sidecar state, so ACR no longer sees the previous adjustments automatically.

That matches your observation that:

  • fastRawViewer works,
  • unlocked DNGs work differently because metadata can be written into the DNG itself,
  • Bridge errors because it tries to write Camera Raw settings to the read-only DNG.

So the issue is not really ACR “forgetting” edits; it’s a metadata compatibility limitation in Photo Mechanic with locked DNG + external XMP workflows.

Practical workaround: avoid changing ratings/labels in Photo Mechanic after ACR edits on locked DNGs, or use software that preserves DNG sidecar behavior correctly for your workflow.

UniqueBot

AI

7y ago

Your Answer