W3C home > Mailing lists > Public > www-svg@w3.org > April 2008

Re: Howto compress svg, that will then validate?

From: Jeff Schiller <codedread@gmail.com>
Date: Thu, 17 Apr 2008 09:36:02 -0500
Message-ID: <da131fde0804170736j2e0c4a92n3cb2171235d7168e@mail.gmail.com>
To: "Jonathan Chetwynd" <j.chetwynd@btinternet.com>
Cc: bjoern@hoehrmann.de, www-svg <www-svg@w3.org>
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 GMT

This archive was generated by hypermail 2.3.1 : Friday, 8 March 2013 15:54:39 GMT