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

Re: Howto compress svg, that will then validate?

From: Jonathan Chetwynd <j.chetwynd@btinternet.com>
Date: Thu, 17 Apr 2008 17:20:14 +0100
Cc: bjoern@hoehrmann.de, www-svg <www-svg@w3.org>
Message-Id: <DEE3C133-B774-40CE-9849-F6EE6FEC1B93@btinternet.com>
To: "Jeff Schiller" <codedread@gmail.com>
Jeff,

> $ cat foo.svg | gzip > foo.svgz
also does not work,

it seems the validator does work in some instances as described in my  
original email, try:
> http://www.peepo.org.uk/temp/vxhtml11.svgz


regards


Jonathan Chetwynd

j.chetwynd@btinternet.com
http://www.iconomy.org/

+44 (0) 20 7978 1764


On 17 Apr 2008, at 15:36, Jeff Schiller wrote:

> 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
>
> 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 16:20:55 GMT

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