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
* Did you read FAQ #3 and use the command listed there?
* Please use the Code button for exiftool code/output.
 
* Please include your OS, Exiftool version, and type of file you're processing (MP4, JPG, etc).

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