Writing xmp data from file changes from v10.40 to v11.16

Started by python3noob, July 13, 2019, 11:18:15 PM

Previous topic - Next topic

python3noob

Trying to figure out what I'm doing wrong here. Pretty new with Exiftool, but I have Exiftool v10.40-1 on Raspbian Stretch and Exiftool v11.16-1 on Raspbian Buster and I'm getting different results from the same command with the same files.

exiftool -tagsfromfile xmp_file.xmp -xmp dng_image.dng

The above command works perfectly with Exiftool v10.40-1, but when running with Exiftool v11.16-1 I receive this error:

Warning: No writable tags set from xmp_file.xmp

Has there been some kind of change between the versions or is there another command I should be using to resolve this issue? Thanks in advance!

Phil Harvey

Could you try this with the current version of ExifTool (11.55)?

- 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 ($).

python3noob

Hey Phil,

Thanks for the reply and sorry for the slow response on my end. After the update to 11.60, Exiftool not give me an error as it did before (mentioned in my previous post), and returns "X image files updated" (X is just a stand in for however many it does). However, the XMP data is not being written to the file.

I double checked everything on my end to make sure it wasn't user error (exact same dng file, exact same xmp file, exact same command). There is a change of hardware (Raspberry Pi 3b+ to Raspberry Pi 4b, Raspbian Stretch to Raspbian Buster, Exiftool v10.40 to v11.16 and v11.60). I can try some versions between to assist in finding when the change was made if you can give me some kind of idea of which versions to try.

Any ideas?

Phil Harvey

Can send me an xmp and a dng file so I can try to reproduce this?  my email is philharvey66 at gmail.com

- 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 ($).

python3noob

Hey Phil,

I just sent you over an email. Let me know if you don't receive it.

Phil Harvey

...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 ($).

python3noob

Checked the email address and it looked right. Maybe it got caught by spam. I just sent you a PM.

Phil Harvey

I got the files, thanks.

Why do you say the XMP isn't written to the file?  Did you try reading it back with ExifTool?  (ie. FAQ 3?)  This works for me:

> exiftool tmp/test.dng -xmp:all
XMP Toolkit                     : XMP Core 4.4.0-Exiv2
Rating                          : 0
> exiftool -tagsfromfile tmp/test.xmp -xmp tmp/test.dng
    1 image files updated
> exiftool tmp/test.dng -xmp:all
XMP Toolkit                     : Adobe XMP Core 5.6-c140 79.160451, 2017/05/06-01:08:21
Creator Tool                    : HELIOS v0.9.0
Modify Date                     : 2019:06:19 22:20:43.46
Create Date                     : 2013:05:29 16:27:50.46
Metadata Date                   : 2019:06:23 12:01:21-05:00
Format                          : image/dng
Image Number                    : 0
Flash Compensation              : 0
Document ID                     : 3A70C2F569BE124305E8A6E06E802ED4
Original Document ID            : 3A70C2F569BE124305E8A6E06E802ED4
Instance ID                     : xmp.iid:2b996b73-d93f-4ecc-8e60-28e65c45ebb6
Version                         : 11.1
Process Version                 : 11.0
Saturation                      : 0
Sharpness                       : 40
Luminance Smoothing             : 0
Color Noise Reduction           : 25
Vignette Amount                 : 0
Shadow Tint                     : 0
Red Hue                         : 0
Red Saturation                  : 0
Green Hue                       : 0
Green Saturation                : 0
Blue Hue                        : 0
Blue Saturation                 : 0
Vibrance                        : 0
Hue Adjustment Red              : 0
Hue Adjustment Orange           : 0
Hue Adjustment Yellow           : 0
Hue Adjustment Green            : 0
Hue Adjustment Aqua             : 0
Hue Adjustment Blue             : 0
Hue Adjustment Purple           : 0
Hue Adjustment Magenta          : 0
Saturation Adjustment Red       : 0
Saturation Adjustment Orange    : 0
Saturation Adjustment Yellow    : 0
Saturation Adjustment Green     : 0
Saturation Adjustment Aqua      : 0
Saturation Adjustment Blue      : 0
Saturation Adjustment Purple    : 0
Saturation Adjustment Magenta   : 0
Luminance Adjustment Red        : 0
Luminance Adjustment Orange     : 0
Luminance Adjustment Yellow     : 0
Luminance Adjustment Green      : 0
Luminance Adjustment Aqua       : 0
Luminance Adjustment Blue       : 0
Luminance Adjustment Purple     : 0
Luminance Adjustment Magenta    : 0
Split Toning Shadow Hue         : 0
Split Toning Shadow Saturation  : 0
Split Toning Highlight Hue      : 0
Split Toning Highlight Saturation: 0
Split Toning Balance            : 0
Parametric Shadows              : 0
Parametric Darks                : 0
Parametric Lights               : 0
Parametric Highlights           : 0
Parametric Shadow Split         : 25
Parametric Midtone Split        : 50
Parametric Highlight Split      : 75
Sharpen Radius                  : +1.0
Sharpen Detail                  : 25
Sharpen Edge Masking            : 0
Post Crop Vignette Amount       : 0
Grain Amount                    : 0
Color Noise Reduction Detail    : 50
Color Noise Reduction Smoothness: 50
Lens Profile Enable             : 0
Lens Manual Distortion Amount   : 0
Perspective Vertical            : 0
Perspective Horizontal          : 0
Perspective Rotate              : 0.0
Perspective Scale               : 100
Perspective Aspect              : 0
Perspective Upright             : 0
Perspective X                   : 0.00
Perspective Y                   : 0.00
Auto Lateral CA                 : 0
Exposure 2012                   : 0.00
Contrast 2012                   : 0
Highlights 2012                 : 0
Shadows 2012                    : 0
Whites 2012                     : 0
Blacks 2012                     : 0
Clarity 2012                    : 0
Defringe Purple Amount          : 0
Defringe Purple Hue Lo          : 30
Defringe Purple Hue Hi          : 70
Defringe Green Amount           : 0
Defringe Green Hue Lo           : 40
Defringe Green Hue Hi           : 60
Dehaze                          : 0
Tone Map Strength               : 0
Convert To Grayscale            : False
Override Look Vignette          : False
Tone Curve Name                 : Medium Contrast
Tone Curve Name 2012            : Linear
Camera Profile                  : Adobe Standard
Camera Profile Digest           : 41F68367DA3B31B07AB631D81D0E942D
Lens Profile Setup              : LensDefaults
Upright Version                 : 151388160
Upright Center Mode             : 0
Upright Center Norm X           : 0.5
Upright Center Norm Y           : 0.5
Upright Focal Mode              : 0
Upright Focal Length 35mm       : 35
Upright Preview                 : False
Upright Transform Count         : 6
Upright Four Segments Count     : 0
Has Settings                    : True
Already Applied                 : False
Raw File Name                   : 0022.dng
Creator                         : HELIOS
Rights                          : (C) 2019 All Rights Reserved
History Action                  : saved
History Instance ID             : xmp.iid:2b996b73-d93f-4ecc-8e60-28e65c45ebb6
History When                    : 2019:06:23 12:01:21-05:00
History Software Agent          : Adobe Photoshop Lightroom Classic 8.1 (Macintosh)
History Changed                 : /metadata
Tone Curve                      : 0, 0, 32, 22, 64, 56, 128, 128, 192, 196, 255, 255
Tone Curve Red                  : 0, 0, 255, 255
Tone Curve Green                : 0, 0, 255, 255
Tone Curve Blue                 : 0, 0, 255, 255
Tone Curve PV2012               : 0, 0, 255, 255
Tone Curve PV2012 Red           : 0, 0, 255, 255
Tone Curve PV2012 Green         : 0, 0, 255, 255
Tone Curve PV2012 Blue          : 0, 0, 255, 255
Look Name                       : HELIOS
Look Amount                     : 1.000000
Look Uuid                       : 172EC57B1723420094277D0D197F59E9
Look Supports Monochrome        : false
Look Supports Output Referred   : false
Look Parameters Version         : 11.1
Look Parameters Process Version : 11.0
Look Parameters Incremental Temperature: 0
Look Parameters Incremental Tint: 0
Look Parameters Saturation Adjustment Orange: -1
Look Parameters Saturation Adjustment Yellow: -1
Look Parameters Saturation Adjustment Green: -1
Look Parameters Saturation Adjustment Aqua: -1
Look Parameters Saturation Adjustment Blue: -1
Look Parameters Saturation Adjustment Purple: -1
Look Parameters Luminance Adjustment Yellow: +1
Look Parameters Luminance Adjustment Green: -1
Look Parameters Luminance Adjustment Aqua: -1
Look Parameters Luminance Adjustment Blue: -1
Look Parameters Luminance Adjustment Purple: -1
Look Parameters Exposure 2012   : +1
Look Parameters Contrast 2012   : +1
Look Parameters Highlights 2012 : -1
Look Parameters Shadows 2012    : +1
Look Parameters Whites 2012     : -1
Look Parameters Blacks 2012     : +1
Look Parameters Clarity 2012    : +1
Look Parameters Dehaze          : +1
Look Parameters Convert To Grayscale: False
Look Parameters Camera Profile  : Adobe Standard
Look Parameters Look Table      : E1095149FDB39D7A057BAB208837E2E1
Look Parameters Tone Curve PV2012: 0, 0, 17, 7, 34, 18, 51, 36, 68, 58, 85, 78, 102, 98, 119, 118, 136, 137, 153, 157, 170, 176, 187, 194, 204, 212, 221, 230, 238, 246, 255, 255
Look Parameters Tone Curve PV2012 Red: 0, 0, 255, 255
Look Parameters Tone Curve PV2012 Green: 0, 0, 255, 255


- Phil

Edit: You're right.  The mail was caught by my junk mail filter.  I found it buried in the junk folder (I get 100's of these each day, so if a mail goes there it is hard to dig out again).
...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 ($).

python3noob

Phil,

I don't know what to say. I tried it again today and sure enough it is working. Maybe I was keying something wrong when testing with v11.60. I retested with v11.16 (which is the apt-get version available through Raspbian Buster) and it was not working. Thanks for your help!

Phil Harvey

#9
Great.  Yes, looking at the revision history, version 11.44 should have fixed this.  Before that you couldn't read XMP as a block from an XMP file since a bug introduced in version 11.04.  With these versions you would have had to do this:

exiftool "-xmp<=test.xmp" test.dng

- 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 ($).