cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conal Tuohy" <con...@paradise.net.nz>
Subject RE: svgz to jpeg ?
Date Mon, 30 Jun 2003 06:48:36 GMT
I think you'll have to write your own GZipGenerator or possibly a
GZipSource?

You are right that the gzipped svg document is not a ZIP archive (it doesn't
include a table of contents or anything - it's just a single BLOB). On the
bright side, gzip is trivial to use in Java, so writing your own shouldn't
be hard.

CHeers

Con

> -----Original Message-----
> From: rob [mailto:robert.gregory1@btinternet.com]
> Sent: Monday, 30 June 2003 09:35
> To: cocoon-users@xml.apache.org
> Subject: Re: svgz to jpeg ?
>
>
> On 28 Jun 2003 at 14:51, Upayavira wrote:
>
> >Ah. So your file on disc is compressed svg. Okay, so you
> need to uncompress
> it into
> >XML and pass that into the SVG2JPG serializer. There's two
> ways to do that,
> either
> >with a zip generator (I think there's an example of one in
> the Langham &
> Ziegler
> >Cocoon book), or using the Jar protocol (see
> >http://wiki.cocoondev.org/Wiki.jsp?page=JarProtocolExample).
> >
> >Both should extract your zipped SVG ready for converting to JPG.
>
> Thanks again for you reply.
>
> I've tried using the jar protocol, but it does not accept the
> 'svgz' file as
> a
> valid zip archive. I guess this is because there is no
> physical file to
> extract
> i.e jar:http//localhost/xyz.svg!???
>
> Even Winzip will not open it.
>
> I haven't tried the zip generator yet because I haven't found any
> documentation,
> and someone has borrowed my Cocoon book !!
>
> Regards,
>
> Rob.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
> For additional commands, e-mail: cocoon-users-help@xml.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-users-unsubscribe@xml.apache.org
For additional commands, e-mail: cocoon-users-help@xml.apache.org


Mime
View raw message