Jump to content

매뉴얼:$wgSVGNativeRendering

From mediawiki.org
This page is a translated version of the page Manual:$wgSVGNativeRendering and the translation is 100% complete.
SVG: $wgSVGNativeRendering
브라우저 에이전트에 의해 네이티브 렌더링을 허용하는지 여부입니다.
이 변수가 소개된 버전:1.41.0 (Gerrit change 921379; git #85dd5826)
이 변수가 사라진 버전:계속해서 쓰이고 있음
허용값:(문자열) 또는 (불리언)
기본값: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 파일의 크기가 제한을 초과하지 않는 한 브라우저에는 항상 원본 SVG 파일이 제공됩니다. 제한을 초과하는 경우, SVG는 서버 측에서 PNG로 변환(래스터화)됩니다.

'partial' 문자열로 설정하면 파일 크기가 $wgSVGNativeRenderingSizeLimit 미만이고 파일이 최대 1개 언어가 포함된 경우에만 네이티브 렌더링을 할 수 있게 합니다.

같이 보기