Fix thumbnails not working for larger SVGs

See linked docs in code comments
This commit is contained in:
Basti 2019-12-13 13:46:57 +01:00
parent 2358ed00db
commit 11c7019bfa
No known key found for this signature in database
GPG Key ID: BE4634D632D39B67

View File

@ -170,6 +170,10 @@ $wgGroupPermissions['team']['editprotected'] = true;
$wgGroupPermissions['sysop']['edit'] = true;
$wgEnableUploads = true;
$wgFileExtensions = [ 'png', 'gif', 'jpg', 'jpeg', 'webp', 'svg' ];
// Parse large SVGs, so they can be thumbnailed without errors
// https://phabricator.wikimedia.org/T199737
// https://www.mediawiki.org/wiki/Manual:$wgSVGMetadataCutoff
$wgSVGMetadataCutoff = 20000000; // 20 MB
$wgExtraNamespaces[100] = "Feature";
$wgNamespacesWithSubpages[100] = true;