tags:

views:

236

answers:

2

Hi,

I use chrome to visualize a svg file which I put on a server, that works fine. Here's the dead simple html for it:

<a href="test.svg">svg</a>

However, when I try to use svgz instead, it doesn't work. Here's the code I use:

<a href="test.svgz">svgz</a>

Here the error:

This page contains the following errors: error on line 1 at column 1: Encoding error Below is a rendering of the page up to the first error.

Looks to me that the browser doesn't decompress the file first. Any idea how can I make this (much smaller) svgz file to display nicely on my browser?

A: 

It looks like it's fixed in build 13536 and greater ⟨http://code.google.com/p/chromium/issues/detail?id=9737⟩ so I guess you just have to upgrade the browser?

Cirno de Bergerac
Thanks for your answer, it turned out to be something else
A: 

I had to add a .htaccess in the web folder root with the following content:

AddType image/svg+xml svg
AddType image/svg+xml svgz
AddEncoding x-gzip .svgz

From those 2 links here and here

Actually that stopped working (same error message. I don't understand what's going on...)