Manual:$wgResponsiveImages

From MediaWiki.org
Jump to navigation Jump to search
This page is a translated version of the page Manual:$wgResponsiveImages and the translation is 33% complete.

Outdated translations are marked like this.
Other languages:
Deutsch • ‎English • ‎español • ‎français • ‎magyar • ‎polski • ‎português • ‎日本語
Thumbnail settings: $wgResponsiveImages
Define si mostrar o no imágenes de alta calidad para pantallas de alta resolución de PPP
Introducido en la versión:1.21.0
Eliminado en la versión:aún se usa
Valores permitidos:(booleano)
Valor predeterminado:true
Otros configuración: Alfabéticamente | Por Función

Detalles

Define si mostrar o no imágenes de alta calidad para pantallas de alta resolución de PPI.

Esto está dirigido principalmente a los navegadores móviles y tabletas y algunos ordenadores portátiles más recientes, como el MacBook Pro con pantalla "Retina".

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 reaching roughly 90% of users globally.

For current browsers, compatibility JavaScript is loaded which checks window.devicePixelRatio for most browsers, and a compatibility fallback for IE 10, and applies srcset -> src change automatically. On browsers with native srcset support, this disables itself automatically.

Limitaciones conocidas

Currently (as of 1.21) this code applies only to images created through Linker methods; image galleries and file: page detail displays are not currently affected. This should be changed at some point by migrating support lower down in the MediaHandler arena.

Display densities

Currently (as of 1.21) the densities used (1.5x and 2x) are hardcoded and not configurable. 1x is the implied default density of the main image.