XMP - DerivedFrom tag data missing (tif) causes InDesign error

Started by designaweb, May 23, 2013, 10:28:23 AM

Previous topic - Next topic

designaweb

Greetings - I've discovered an issue where missing data for the 'DerivedFrom' tag is causing InDesign to bomb. Opening the tif in PS and resaving it completes the necessary data and InDesign can then use/open the image.

The bad image file contains this:

<xmpMM:DerivedFrom rdf:parseType='Resource'>
</xmpMM:DerivedFrom>
[


The good image file (after it's resaved in PS) seems to fill in the blanks:

<xmpMM:DerivedFrom rdf:parseType='Resource'
    xmlns:stRef='http://ns.adobe.com/xap/1.0/sType/ResourceRef#'>
   <stRef:documentID>9478C98B556772AA25EDE84B2D68A3A8</stRef:documentID>
   <stRef:originalDocumentID>9478C98B556772AA25EDE84B2D68A3A8</stRef:originalDocumentID>
  </xmpMM:DerivedFrom>
[


I discovered this using gimp to export XMP to xml and did a diff between a good file and bad file. I was hoping I could just remove DerivedFrom tag altogether in the bad image and test if InDesign can consume it without seeing that tag. How do I perform such a task with exiftool? When I just view the metadata w/exiftool, it appears to derive those values (by pulling it from the Original Document ID..see my attached png):

Derived From Document ID        : 9478C98B556772AA25EDE84B2D68A3A8
Derived From Original Document ID: 9478C98B556772AA25EDE84B2D68A3A8


I know I'm doing an apples to oranges comparison with two software products so my output differs between the two.

Looking for recommendations on how to tackle this - seems my two options are:
- Remove the DerivedFrom tag (and see if InDesign can accept it); seems to be the easiest route if it works
- Add the <stRef: info to complete the tag in full (would have to somehow copy the OriginalDocumentID # into there); the hardest route IMO.

Appreciate any feedback.

Phil Harvey

Quote from: designaweb on May 23, 2013, 10:28:23 AM
I was hoping I could just remove DerivedFrom tag altogether in the bad image and test if InDesign can consume it without seeing that tag. How do I perform such a task with exiftool?

exiftool -derivedfrom= FILE

I think this is the simplest approach.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).


designaweb

Bummer - unfortunately InDesign still isn't loading. I'll try removing the other tags to see if getting rid of those make a difference.

Is there a way to have InDesign tell me specifically why an image won't load? The error message is kind of generic.

Phil Harvey

I don't know InDesign, but try removing all of the xmp (then iptc and exif) with -xmp:all= to be sure that it will eventually read the file if the metadata is all deleted.

- Phil
...where DIR is the name of a directory/folder containing the images.  On Mac/Linux/PowerShell, use single quotes (') instead of double quotes (") around arguments containing a dollar sign ($).

designaweb

Thanks for the recommendations.. will strip it down till all of it's gone and see what happens.

Really appreciate your help!