Hayo,
This issue is tricky and it also was a problem with CNX-2, which I guess should no longer a problem for you now that you have moved on to Adobe's workflow
. But I will explain CNX-2 issues since you are familiar with that workflow and the problem you are having with DNG's is similar.
First let me explain that PM stores potentially two crops for RAW files. There is the "main" crop which is stored in XMP in the camera raw (ACR) namespace. This main crop applies to the full resolution RAW file. Additionally there is a draft crop in PM which I'll explain below.
Now for RAW files that haven't yet been touched by other applications (e.g. before editing a NEF in CNX-2), the embedded preview should represent the full RAW image even though it could be a smaller dimension (e.g. Canon used to embed small JPEG previews, whereas Nikon has embedded full resolution previews for a long time). In this case when PM draws the "draft" image of a RAW file it can apply this main crop to the draft preview. So PM's "draft crop" can inherit the main crop because the preview is representative of the full resolution RAW image. Alternatively, when you draw a crop in PM on this draft preview, the main crop will inherit this draft crop. The two crops are "joined" when the preview is representative.
If you are on a Mac and your ImageIO version supports your camera RAW files (e.g. Apple's Preview can display them), then you can use the Q key in PM's preview window to render the RAW using ImageIO. In this case PM will always use the main crop (if any) because you are looking at the full RAW file. If you draw a crop in the RAW mode, and the preview is representative of the full RAW image, then the draft crop will inherit the main crop. Remember the crop is stored as a fraction of the image size, not absolute pixels.
So everything is fine until… you edit the NEF file in CNX-2, crop the NEF, then save a new NEF. In this case CNX-2 will update the preview in the RAW file (I wish it wouldn't) to show the cropped image (i.e. it removes anything outside the crop). Of course CNX-2 knows nothing about XMP crops in the ACR namespace, so as far as another application like PM is concerned, the crop will still exist in the XMP and PM should assume the RAW file has a crop. Unfortunately, this crop really only applies to the main, full resolution image and should no longer apply to the already cropped draft preview that CNX-2 updated.
But how is PM to know if the user cropped the NEF file in CNX-2? Because if the user did crop, then PM shouldn't be drawing this XMP ACR "main" crop on the draft preview anymore. However, PM should still draw this main crop if the user renders the RAW file (if possible on Mac) using the Q key. How can PM know if the embedded preview has been cropped?
When PM looks at the preview in a raw file, it needs to determine whether or not this preview represents the full resolution RAW image. But there wasn't a way (that I could tell with available and reliable metadata) whether or not a user had cropped in CNX-2 (short of white-listing all models with their dimensions). So PM will look at the aspect ratio (width/height) of the embedded preview. If this aspect ratio is different from the aspect ratio of the RAW file (basically 3:2 for NEF), then PM will determine that the preview "draft" isn't representative of the the RAW file. Therefore, the draft crop doesn't inherit the main crop (and vice-versa), and you can actually draw an additional smaller draft crop on the already cropped preview. This draft crop is stored in XMP using PM's namespace, not ACR, so as not to confuse the two.
But if you put a 3:2 crop onto a NEF in CNX-2 that already has a crop in the XMP, then PM will think the preview represents the whole RAW image and it will draw its draft crop (which was previously inherited from the main crop). So relying on the aspect ratio isn't a perfect solution unfortunately.
Now with ACR the situation is similar. If you draw a crop in ACR that is 3:2 and is close to full resolution (e.g. only cropping a little bit on the edges), then PM will think the embedded preview still represents the full image because the aspect ratio is close to the RAW image (approx 3:2). So it will draw crop marks on the cropped preview.
I will take a look another look at the DNG tags and see if there is a way to tell if the embedded preview is cropped. You might think that since ACR updates the preview when you crop then PM should assume the preview doesn't represent the full RAW file. But if you use PM to draw a crop on a DNG file then PM doesn't update the preview. So if the only metadata is an XMP ACR crop how is PM to know whether or not the preview has been cropped (other than looking at the aspect ratio or white-listing all the models and their dimensions)?
Do you see the dilemma here?
--dennis