Unable to add several xmp:subject to a jxl file

Started by mahikeulbody, February 20, 2023, 01:18:08 PM

Previous topic - Next topic

mahikeulbody

exiftool -xmp:all= p.jxl
    1 image files updated
exiftool -xmp:subject+="aaa" p.jxl
    1 image files updated
exiftool -xmp:all -G1  p.jxl
[XMP-x]         XMP Toolkit                     : Image::ExifTool 12.56
[XMP-dc]        Subject                         : aaa
exiftool -xmp:subject+="bbb" p.jxl
    1 image files updated
exiftool -xmp:all -G1  p.jxl
[XMP-x]         XMP Toolkit                     : Image::ExifTool 12.56
[XMP-dc]        Subject                         : bbb

OS : Linux

StarGeek

Phil will have to take a look at this because exiftool is writing multple XMP-dc:Subject.  The -a (-duplicates) option is needed to see what is happening.

C:\>exiftool -G1 -a -s -subject Y:\!temp\dd\p-original.jxl

C:\>exiftool -P -overwrite_original -xmp:subject+="aaa" Y:\!temp\dd\p-original.jxl
Warning: [minor] Ignored empty rdf:Seq list for darktable:masks_history - Y:/!temp/dd/p-original.jxl
    1 image files updated

C:\>exiftool -G1 -a -s -subject Y:\!temp\dd\p-original.jxl
[XMP-dc]        Subject                         : aaa
[XMP-dc]        Subject                         : aaa

C:\>exiftool -P -overwrite_original -xmp:subject+="bbb"  Y:\!temp\dd\p-original.jxl
    1 image files updated

C:\>exiftool -G1 -a -s -subject Y:\!temp\dd\p-original.jxl
[XMP-dc]        Subject                         : aaa, bbb
[XMP-dc]        Subject                         : aaa, bbb
[XMP-dc]        Subject                         : bbb
"It didn't work" isn't helpful. What was the exact command used and the output.
Read FAQ #3 and use that cmd
Please use the Code button for exiftool output

Please include your OS/Exiftool version/filetype

Phil Harvey

Great, thanks for this report!

This bug will be fixed in 12.57.

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

Phil Harvey

Version 12.57 is now available with this fix.

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