Page MenuHomePhabricator

svgz.INSTALL

Authored By
bzimport
Nov 21 2014, 9:05 PM
Size
1013 B
Referenced Files
None
Subscribers
None

svgz.INSTALL

INSTRUCTIONS TO USE THE SVGZ PATCH
1. Apply the patch to your wiki directory,
e.g. patch -p1 svgz.patch
2. In LocalSettings.php, add these lines:
$wgStrictFileExtensions=false;
$wgEnableUploads = true;
3. You MUST enable your web server to properly serve
SVGZ files with Content-Encoding:gzip and MIME type
image/svg+xml. This is NOT enabled by default.
Edit httpd.conf or .htaccess (search Google if stuck)
EXAMPLE: In Apache's httpd.conf, add these lines:
AddType image/svg+xml .svg .svgz
AddEncoding gzip .svgz
<Files *.svgz.*>
RemoveEncoding .svgz
</Files>
4. Restart your web server (on Linux, sudo /etc/init.d/httpd restart)
5. That's it! Have fun. Report bugs/problems/etc. to en:User_talk:Brownsteve
NOTES ABOUT THIS PATCH
SVG is not a registered MIME type with IANA.
Apache only includes IANA-approved MIME types by default.
You must configure your httpd.conf by hand until this is fixed.
We assume all browsers that can render SVG graphics
can also Accept-Encoding:gzip.

File Metadata

Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2205
Default Alt Text
svgz.INSTALL (1013 B)

Event Timeline