ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: mahikeulbody on February 20, 2023, 01:18:08 PM

Title: Unable to add several xmp:subject to a jxl file
Post by: mahikeulbody on February 20, 2023, 01:18:08 PM
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
Title: Re: Unable to add several xmp:subject to a jxl file
Post by: StarGeek on February 20, 2023, 04:07:21 PM
Phil will have to take a look at this because exiftool is writing multple XMP-dc:Subject.  The -a (-duplicates) option (https://exiftool.org/exiftool_pod.html#a---a--duplicates---duplicates) 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
Title: Re: Unable to add several xmp:subject to a jxl file
Post by: Phil Harvey on February 20, 2023, 09:50:39 PM
Great, thanks for this report!

This bug will be fixed in 12.57.

- Phil
Title: Re: Unable to add several xmp:subject to a jxl file
Post by: Phil Harvey on February 23, 2023, 11:51:06 AM
Version 12.57 is now available with this fix.

- Phil