手册:$wgEnableAutoRotation
Appearance
图片: $wgEnableAutoRotation | |
---|---|
是否根据 EXIF 信息启用图像自动旋转 |
|
引进版本: | 1.18.0 (r99910) |
移除版本: | 仍在使用 |
允许的值: | (布尔值) |
默认值: | 如果图像光栅器支持旋转,则为true ,否则为false |
其他设置: 按首字母排序 | 按功能排序 |
用法
To explicitly disable image auto-rotation, add to the bottom of LocalSettings.php:
$wgEnableAutoRotation = false;
Explicitly setting to true is probably a bad idea (since if the image renderer supports rotation, it should be auto-detected).
细节
If it is true, MediaWiki will look at the EXIF Orientation metadata field (which is set mainly by smartphones and some cameras, when pictures are taken sideways) and automatically rotate the image to the correct orientation.
If not set in LocalSettings.php (or if set to null) then this setting takes its value from BitmapHandler::canRotate()
method - which returns true if the image rendering method supports rotation.
You can use ?action=purge on image pages to update scaled images (thumbnails, etc) after changing this.