Manual:$wgUpdateCompatibleMetadata

Details
Whether to automatically update the img_metadata field if the metadata field is outdated but compatible with the current version.