Manual:$wgResponsiveImages/zh
<translate> Thumbnail settings</translate>: $wgResponsiveImages | |
---|---|
是否为高DPI显示输出高分辨率图像 |
|
<translate> Introduced in version:</translate> | 1.21.0 (Gerrit change 24115; git #Id80ebd0) |
<translate> Removed in version:</translate> | <translate> still in use</translate> |
<translate> Allowed values:</translate> | (布尔值) |
<translate> Default value:</translate> | true |
<translate> Other settings:</translate> <translate> Alphabetical</translate> | <translate> By function</translate> |
细节
是是否为高分辨率显示器显示输出高分辨率图像。
This is primarily targeted at tablet browsers and newer desktops and laptops, such as the MacBook Pro with Retina display. On these high-DPI devices, raster images appear blurry or pixelated by default without special treatment.
When generating thumbnail images, thumbnails are rendered not only at the requested size, but at 1.5x and 2x the requested size.
The HTML5 srcset
attribute is included on the img
specifying these larger images for the appropriate display densities.
Native support for the srcset
attribute was first added to WebKit browsers in August 2013 and has since been adopted by most modern browsers, now (as of 2020) reaching over 94% of users globally.
已知限制
This code applies only to images created through Linker :
- article thumbnails (1.21+)
- file: page detail displays (1.23+)
- image galleries (1.25+)
- the imageinfo API (1.36+)
Display densities
Currently (as of 1.39) the densities used (1.5x and 2x) are hardcoded and not configurable. 1x is the implied default density of the main image.