Translations:Manual:$wgEnableAutoRotation/9/en

If not set in LocalSettings.php (or if set to null) then this setting takes its value from $caRotate method - which returns true if the image rendering method supports rotation.