Jump to content

Manual:$wgSVGNativeRendering

From mediawiki.org
This page is a translated version of the page Manual:$wgSVGNativeRendering and the translation is 75% complete.
Outdated translations are marked like this.
SVG: $wgSVGNativeRendering
ブラウザー エージェントによるネイティブなレンダリングが許可されているかどうか。
導入されたバージョン:1.41.0 (Gerrit change 921379; git #85dd5826)
除去されたバージョン:使用中
許容される値:(文字列) または $1
既定値:true (1.46+)
false (1.41-1.45)

詳細

ブラウザー エージェントによるネイティブなレンダリングが許可されているかどうかです。

$wgSVGNativeRendering now defaults to true. This means that uploaded SVGs are rendered directly by the browser most of the time. MediaWiki applies several filters on uploaded SVGs to protect against malicious SVGs. The browser adds restrictions on the SVG when included as an ‎<img> for additional protection. We do advise configuring CSP headers to protect users in case they open a SVG file directly in the browser.

true を設定すると、すべての SVG 変換が無効になり、ブラウザーには常にネイティブ SVG が提供されます。

文字列 'partial' を設定すると、ファイルサイズが $wgSVGNativeRenderingSizeLimit 以下であり、かつファイルに 1 つの言語が含まれている場合にのみ、ネイティブ レンダリングが許可されます。

関連項目