Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F2630
svgz.INSTALL
Public
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Authored By
•
bzimport
Nov 21 2014, 9:05 PM
2014-11-21 21:05:22 (UTC+0)
Size
1013 B
Referenced Files
None
Subscribers
None
svgz.INSTALL
View Options
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
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2205
Default Alt Text
svgz.INSTALL (1013 B)
Attached To
Mode
T6947: SVGZ (gzipped SVG) support
Attached
Detach File
Event Timeline
Log In to Comment