Bug 480277 - Missing XMP Subject field in image metadata
Summary: Missing XMP Subject field in image metadata
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Metadata-Xmp (show other bugs)
Version: 8.2.0
Platform: Flatpak Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-24 14:52 UTC by Ritesh Raj Sarraf
Modified: 2024-01-25 09:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ritesh Raj Sarraf 2024-01-24 14:52:51 UTC
SUMMARY

Something seems to have broken in Digikam 8.2.0.


In Digikam 8.1 or before, metadata written to images have a Subject field

```
rrs@xps:.../.Pictures$ exiftool 2023/November/PXL_20231104_094352406.jpg
ExifTool Version Number         : 12.70
File Name                       : PXL_20231104_094352406.jpg
Directory                       : 2023/November
File Size                       : 3.3 MB
File Modification Date/Time     : 2023:11:04 15:14:03+05:30
File Access Date/Time           : 2024:01:23 17:07:16+05:30
File Inode Change Date/Time     : 2023:11:04 15:14:03+05:30
File Permissions                : -rwxrwxr-x
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.02
Exif Byte Order                 : Little-endian (Intel, II)
Image Description               : 
Make                            : Google
Camera Model Name               : Pixel 7
Orientation                     : Horizontal (normal)
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : HDR+ 1.0.561695621zd
Modify Date                     : 2023:11:04 15:13:52
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/100
F Number                        : 1.9
Exposure Program                : Program AE
ISO                             : 50
Exif Version                    : 0232
Date/Time Original              : 2023:11:04 15:13:52
Create Date                     : 2023:11:04 15:13:52
Offset Time                     : +05:30
Offset Time Original            : +05:30
Offset Time Digitized           : +05:30
Components Configuration        : Y, Cb, Cr, -
Shutter Speed Value             : 1/100
Aperture Value                  : 1.9
Brightness Value                : 4.42
Exposure Compensation           : 0
Max Aperture Value              : 1.9
Subject Distance                : 4.399 m
Metering Mode                   : Center-weighted average
Flash                           : Off, Did not fire
Focal Length                    : 6.8 mm
Sub Sec Time                    : 406
Sub Sec Time Original           : 406
Sub Sec Time Digitized          : 406
Flashpix Version                : 0100
Color Space                     : sRGB
Exif Image Width                : 4032
Exif Image Height               : 2268
Interoperability Index          : R98 - DCF basic file (sRGB)
Interoperability Version        : 0100
Sensing Method                  : One-chip color area
Scene Type                      : Directly photographed
Custom Rendered                 : Custom
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 0
Focal Length In 35mm Format     : 24 mm
Scene Capture Type              : Standard
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
Subject Distance Range          : Distant
Lens Make                       : Google
Lens Model                      : Pixel 7 back camera 6.81mm f/1.85
Composite Image                 : Composite Image Captured While Shooting
GPS Version ID                  : 2.2.0.0
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 09:42:19
GPS Img Direction Ref           : Magnetic North
GPS Img Direction               : 210
GPS Map Datum                   : WGS-84
GPS Date Stamp                  : 2023:11:04
Compression                     : JPEG (old-style)
Thumbnail Offset                : 1436
Thumbnail Length                : 31607
Warning                         : [minor] Fixed incorrect URI for xmlns:MicrosoftPhoto
Has Extended XMP                : 5DAE0D1BBA322FA93BE282905C2D05BD
Date/Time Modified              : 2023:11:04 15:13:52
Urgency                         : 0 (reserved)
Metadata Date                   : 2023:11:04 15:13:52
Pick Label                      : 0
Color Label                     : 0
Categories                      : <Categories><Category Assigned="0">People<Category Assigned="0">Family<Category Assigned="1">Kiran Santosh Sarraf</Category><Category Assigned="1">Priya Raj Sarraf</Category><Category Assigned="1">Ritesh Raj Sarraf</Category><Category Assigned="1">Anshika Raj Sarraf</Category></Category></Category></Categories>
Tags List                       : People/Family/Anshika Raj Sarraf, People/Family/Ritesh Raj Sarraf, People/Family/Priya Raj Sarraf, People/Family/Kiran Santosh Sarraf
Last Keyword XMP                : People/Family/Anshika Raj Sarraf, People/Family/Ritesh Raj Sarraf, People/Family/Priya Raj Sarraf, People/Family/Kiran Santosh Sarraf
Hierarchical Subject            : People|Family|Anshika Raj Sarraf, People|Family|Ritesh Raj Sarraf, People|Family|Priya Raj Sarraf, People|Family|Kiran Santosh Sarraf
Catalog Sets                    : People|Family|Anshika Raj Sarraf, People|Family|Ritesh Raj Sarraf, People|Family|Priya Raj Sarraf, People|Family|Kiran Santosh Sarraf
Subject                         : Anshika Raj Sarraf, Ritesh Raj Sarraf, Priya Raj Sarraf, Kiran Santosh Sarraf
Region Person Display Name      : Anshika Raj Sarraf, Kiran Santosh Sarraf, Priya Raj Sarraf, Ritesh Raj Sarraf
Region Rectangle                : 0.519345, 0.410053, 0.0238095, 0.0515873, 0.269345, 0.235009, 0.0287698, 0.0599647, 0.430308, 0.235009, 0.0287698, 0.0599647, 0.519345, 0.2306, 0.0238095, 0.0599647, 0.589038, 0.187831, 0.0334821, 0.0771605, 0.363095, 0.183862, 0.0287698, 0.0595238
Region Applied To Dimensions W  : 4032
Region Applied To Dimensions H  : 2268
Region Applied To Dimensions Unit: pixel
Region Name                     : Anshika Raj Sarraf, Kiran Santosh Sarraf, Priya Raj Sarraf, Ritesh Raj Sarraf
Region Type                     : Face, Face, Face, Face, Face, Face
Region Area X                   : 0.53125, 0.28373, 0.444692, 0.53125, 0.605779, 0.37748
Region Area Y                   : 0.435847, 0.264991, 0.264991, 0.260582, 0.226411, 0.213624
Region Area W                   : 0.0238095, 0.0287698, 0.0287698, 0.0238095, 0.0334821, 0.0287698
Region Area H                   : 0.0515873, 0.0599647, 0.0599647, 0.0599647, 0.0771605, 0.0595238
Region Area Unit                : normalized, normalized, normalized, normalized, normalized, normalized
Profile CMM Type                : 
Profile Version                 : 4.0.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 2023:03:09 10:57:00
Profile File Signature          : acsp
Primary Platform                : Unknown ()
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             : Google
Device Model                    : 
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : Google
Profile ID                      : 61473528d5aaa311e143dfc93efaa268
Profile Description             : sRGB IEC61966-2.1
Profile Copyright               : Copyright (c) 2023 Google Inc.
Media White Point               : 0.9642 1 0.82491
Media Black Point               : 0 0 0
Red Matrix Column               : 0.43604 0.22249 0.01392
Green Matrix Column             : 0.38512 0.7169 0.09706
Blue Matrix Column              : 0.14305 0.06061 0.71391
Red Tone Reproduction Curve     : (Binary data 32 bytes, use -b option to extract)
Chromatic Adaptation            : 1.04788 0.02292 -0.05019 0.02959 0.99048 -0.01704 -0.00922 0.01508 0.75168
Blue Tone Reproduction Curve    : (Binary data 32 bytes, use -b option to extract)
Green Tone Reproduction Curve   : (Binary data 32 bytes, use -b option to extract)
Current IPTC Digest             : 32eb4a21135a77c13eec3b2d2c66f8a2
Coded Character Set             : UTF8
Date Created                    : 2023:11:04
Time Created                    : 15:13:52+00:00
Keywords                        : Anshika Raj Sarraf, Ritesh Raj Sarraf, Priya Raj Sarraf, Kiran Santosh Sarraf
Image Width                     : 4032
Image Height                    : 2268
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
XMP Toolkit                     : Adobe XMP Core 5.1.0-jc003
Hdr Plus Makernote              : (Binary data 33109 bytes, use -b option to extract)
Aperture                        : 1.9
Image Size                      : 4032x2268
Megapixels                      : 9.1
Scale Factor To 35 mm Equivalent: 3.5
Shutter Speed                   : 1/100
Create Date                     : 2023:11:04 15:13:52.406+05:30
Date/Time Original              : 2023:11:04 15:13:52.406+05:30
Modify Date                     : 2023:11:04 15:13:52.406+05:30
Thumbnail Image                 : (Binary data 31607 bytes, use -b option to extract)
Date/Time Created               : 2023:11:04 15:13:52+00:00
Circle Of Confusion             : 0.009 mm
Depth Of Field                  : inf (1.76 m - inf)
Field Of View                   : 73.7 deg
Focal Length                    : 6.8 mm (35 mm equivalent: 24.0 mm)
Hyperfocal Distance             : 2.94 m
Light Value                     : 9.4
Lens ID                         : Pixel 7 back camera 6.81mm f/1.85
```


While, in Digikam 8.2 written metadata is missing the Subject field.

```
rrs@xps:.../.Pictures$ exiftool 2024/January/PXL_20240122_122856680.jpg
ExifTool Version Number         : 12.70
File Name                       : PXL_20240122_122856680.jpg
Directory                       : 2024/January
File Size                       : 4.3 MB
File Modification Date/Time     : 2024:01:22 17:59:00+05:30
File Access Date/Time           : 2024:01:24 19:43:44+05:30
File Inode Change Date/Time     : 2024:01:22 17:59:00+05:30
File Permissions                : -rwxrwxr-x
File Type                       : JPEG
File Type Extension             : jpg
MIME Type                       : image/jpeg
JFIF Version                    : 1.02
Exif Byte Order                 : Little-endian (Intel, II)
Image Description               : 
Make                            : Google
Camera Model Name               : Pixel 7
Orientation                     : Horizontal (normal)
X Resolution                    : 72
Y Resolution                    : 72
Resolution Unit                 : inches
Software                        : HDR+ 1.0.585804401zd
Modify Date                     : 2024:01:22 17:58:56
Y Cb Cr Positioning             : Centered
Exposure Time                   : 1/254
F Number                        : 1.9
Exposure Program                : Program AE
ISO                             : 46
Exif Version                    : 0232
Date/Time Original              : 2024:01:22 17:58:56
Create Date                     : 2024:01:22 17:58:56
Offset Time                     : +05:30
Offset Time Original            : +05:30
Offset Time Digitized           : +05:30
Components Configuration        : Y, Cb, Cr, -
Shutter Speed Value             : 1/254
Aperture Value                  : 1.9
Brightness Value                : 5.89
Exposure Compensation           : 0
Max Aperture Value              : 1.9
Subject Distance                : 5.222 m
Metering Mode                   : Center-weighted average
Flash                           : Off, Did not fire
Focal Length                    : 6.8 mm
Sub Sec Time                    : 680
Sub Sec Time Original           : 680
Sub Sec Time Digitized          : 680
Flashpix Version                : 0100
Color Space                     : Uncalibrated
Exif Image Width                : 2268
Exif Image Height               : 4032
Sensing Method                  : One-chip color area
Scene Type                      : Directly photographed
Custom Rendered                 : Custom
Exposure Mode                   : Auto
White Balance                   : Auto
Digital Zoom Ratio              : 0
Focal Length In 35mm Format     : 24 mm
Scene Capture Type              : Standard
Contrast                        : Normal
Saturation                      : Normal
Sharpness                       : Normal
Subject Distance Range          : Distant
Lens Make                       : Google
Lens Model                      : Pixel 7 back camera 6.81mm f/1.85
Composite Image                 : Composite Image Captured While Shooting
GPS Version ID                  : 2.2.0.0
GPS Latitude Ref                : North
GPS Longitude Ref               : East
GPS Altitude Ref                : Above Sea Level
GPS Time Stamp                  : 12:28:52
GPS Img Direction Ref           : Magnetic North
GPS Img Direction               : 241
GPS Map Datum                   : WGS-84
GPS Date Stamp                  : 2024:01:22
XP Keywords                     : Ritesh Raj Sarraf;Kiran Santosh Sarraf;Matsya Raj Sarraf
Compression                     : JPEG (old-style)
Thumbnail Offset                : 1448
Thumbnail Length                : 37587
Profile CMM Type                : 
Profile Version                 : 4.0.0
Profile Class                   : Display Device Profile
Color Space Data                : RGB
Profile Connection Space        : XYZ
Profile Date Time               : 2023:03:09 10:57:00
Profile File Signature          : acsp
Primary Platform                : Unknown ()
CMM Flags                       : Not Embedded, Independent
Device Manufacturer             : Google
Device Model                    : 
Device Attributes               : Reflective, Glossy, Positive, Color
Rendering Intent                : Perceptual
Connection Space Illuminant     : 0.9642 1 0.82491
Profile Creator                 : Google
Profile ID                      : bb6324a8a5091bbb5d36f9afa40f9ab9
Profile Description             : Display P3
Profile Copyright               : Copyright (c) 2023 Google Inc.
Media White Point               : 0.9642 1 0.82491
Media Black Point               : 0 0 0
Red Matrix Column               : 0.51512 0.2412 -0.00104
Green Matrix Column             : 0.29198 0.69225 0.04189
Blue Matrix Column              : 0.1571 0.06657 0.78407
Red Tone Reproduction Curve     : (Binary data 32 bytes, use -b option to extract)
Chromatic Adaptation            : 1.04788 0.02292 -0.05019 0.02959 0.99048 -0.01704 -0.00922 0.01508 0.75168
Blue Tone Reproduction Curve    : (Binary data 32 bytes, use -b option to extract)
Green Tone Reproduction Curve   : (Binary data 32 bytes, use -b option to extract)
Current IPTC Digest             : d274397acdca8d788a1551576cbcc19b
Coded Character Set             : UTF8
Envelope Record Version         : 4
Keywords                        : Ritesh Raj Sarraf, Kiran Santosh Sarraf, Matsya Raj Sarraf
Date Created                    : 2024:01:22
Time Created                    : 17:58:56+00:00
Application Record Version      : 4
XMP Toolkit                     : Image::ExifTool 12.52
Has Extended XMP                : 2405345E9E95C07B4F861B4C97ED6757
Version                         : 1.0
Directory Item Mime             : image/jpeg
Directory Item Semantic         : Primary
Directory Item Length           : 87510
MPF Version                     : 0100
Number Of Images                : 2
MP Image Flags                  : (none)
MP Image Format                 : JPEG
MP Image Type                   : Undefined
MP Image Length                 : 87510
MP Image Start                  : 4232451
Dependent Image 1 Entry Number  : 0
Dependent Image 2 Entry Number  : 0
Image Width                     : 2268
Image Height                    : 4032
Encoding Process                : Baseline DCT, Huffman coding
Bits Per Sample                 : 8
Color Components                : 3
Y Cb Cr Sub Sampling            : YCbCr4:2:0 (2 2)
Hdr Plus Makernote              : (Binary data 52449 bytes, use -b option to extract)
Aperture                        : 1.9
Image Size                      : 2268x4032
Megapixels                      : 9.1
Scale Factor To 35 mm Equivalent: 3.5
Shutter Speed                   : 1/254
Create Date                     : 2024:01:22 17:58:56.680+05:30
Date/Time Original              : 2024:01:22 17:58:56.680+05:30
Modify Date                     : 2024:01:22 17:58:56.680+05:30
Thumbnail Image                 : (Binary data 37587 bytes, use -b option to extract)
Date/Time Created               : 2024:01:22 17:58:56+00:00
MP Image 2                      : (Binary data 87510 bytes, use -b option to extract)
Circle Of Confusion             : 0.009 mm
Depth Of Field                  : inf (1.85 m - inf)
Field Of View                   : 73.7 deg
Focal Length                    : 6.8 mm (35 mm equivalent: 24.0 mm)
Hyperfocal Distance             : 2.86 m
Light Value                     : 11.0
Lens ID                         : Pixel 7 back camera 6.81mm f/1.85
```


Is this change on purpose ? Could we please have the XMP.Subject field back again ?
Comment 1 Maik Qualmann 2024-01-24 15:11:55 UTC
The XMP subject tag is still being written. No XMP metadata is written. You are using a Pixel 7, we have fixed a problem with the XMP metadata, this depends on the settings in the Pixel 7. Please test the digiKam-8.3.0 pre-release version (AppImage)  from here:

https://files.kde.org/digikam/

Maik
Comment 2 Maik Qualmann 2024-01-24 15:16:21 UTC
Read this Bug 478899 or Bug 479780, the Ultra-HDR setting triggered the problem.

Maik
Comment 3 Maik Qualmann 2024-01-25 07:06:18 UTC
I tested it again here with a Pixel 7 image, XMP.dc.subject is written with digiKam-8.3.0.

Maik
Comment 4 Ritesh Raj Sarraf 2024-01-25 09:35:35 UTC
Dear Maik,

THank you so much for your swift responses. I'm glad this is all sorted out already. I verified the fixes with the latest AppImage bundle: digiKam-8.3.0-20240125T080925-x86-64.appimage

And all is working back a charm like before.