I use ImageI/O call - CGImageDestinationCopyImageSource() to update image metadata and noticed it's failing on updating existing metadata fields since macOS 12 beta 5, and upgrading to beta 6 is not fixing it. MacOS 11 and below don't have this issue. Do you plan to fix it in coming betas and when?
Precondition:
have a file that has any IPTC. For example, IPTC Title = "Old".
Steps:
Update the metadata (e.g. change IPTC Title to "New") with following code:
NSDictionary *options = [NSDictionary dictionaryWithObjectsAndKeys:(id)metadataToApply,kCGImageDestinationMetadata, kCFBooleanTrue,kCGImageDestinationMergeMetadata, nil];
CFErrorRef metaError = NULL;
BOOL isSuccess = CGImageDestinationCopyImageSource(idst, srf, (__bridge CFDictionaryRef)options, &metaError);
Observe:
At file level, silently fails, IPTC Title = "Old".