Re: Howto compress svg, that will then validate?

The validator should be updated to handle compressed svg (i.e. the validator
should decompress the file before parsing it.  I consider it a validator
bug.

Here's how I generate svgz files:

$ cat foo.svg | gzip > foo.svgz

If you're using Windows, then you can download cygwin...

Regards,
Jeff


On 4/17/08, Jonathan Chetwynd <j.chetwynd@btinternet.com> wrote:
>
> Howto compress svg?
>
> I am having the devil's own job getting any svgz file to validate.
>
> current method: paste code into file, save as svg, gzip, rename from
> .svg.gz to svgz
>
> works for Opera, Batik and Amaya but not the W3C validator, Mozilla or
> Safari
>
> cheers
>
>   <http://www.iconomy.org>
>
> Jonathan Chetwynd
>
> j.chetwynd@btinternet.com
> http://www.iconomy.org/
>
> +44 (0) 20 7978 1764
>
>
> tested with
> http://www.websitedev.de/svg/vxhtml11.svgz
>
> saved as
> http://www.peepo.org.uk/temp/vxhtml11.svgz
> to test server
>
> then copy and paste code into file, save as svg, gzip, rename from .svg.gz
> to svgz
> http://www.peepo.org.uk/temp/testgzip.svgz
> wont validate
>

Received on Thursday, 17 April 2008 14:36:46 UTC