Manual:$wgUpdateCompatibleMetadata

EXIF: $wgUpdateCompatibleMetadata
Whether to automatically update the img_metadata field if it is outdated but compatible with the current version.
Introduced in version:1.18.0 (r86169)
Removed in version:still in use
Allowed values:(boolean)
Default value:false

Details edit

Whether to automatically update the img_metadata field in the database, if the metadata becomes outdated (say, after a major upgrade of MediaWiki) but can be automatically updated to the current format. This update would take place when viewing the image page, or alternatively, it could be forced by running the refreshImageMetadata.php maintenance script.

This setting defaults to false, because during a code update, a lot of images could suddenly have outdated metadata. Regenerating all of them could overload the server if it is a busy server.