Perhaps cocoon is the wrong way to do that,
but you can write a servlet that uses CONVERT to
convert from html to jpeg/png/gif or whatever.

Take a look at:
http://www.imagemagick.org/

Christoph Gaffga
[EMAIL PROTECTED]

----- Original Message -----
From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 28, 2002 11:55 AM
Subject: RE: html2jpg


> Would it not be handy to get a image of for example www.cnn.com. I think
> so... But unfortunately not everything is well formed (x)html....
>
> -----Oorspronkelijk bericht-----
> Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> Verzonden: dinsdag 28 mei 2002 11:44
> Aan: [EMAIL PROTECTED]
> Onderwerp: Re: html2jpg
>
>
> From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
>
> > Tidy doesn't work when you have <br>, this wil not be converted to
<br/>.
> > This cause an error saying br misses a closing tag....
>
> This is either a bug in Tidy or can be configured. See the docs.
> Otherwise, why to use it if you have already well-formed XHTML?
>
> Konstantin
>
> >
> > -----Oorspronkelijk bericht-----
> > Van: Konstantin Piroumian [mailto:[EMAIL PROTECTED]]
> > Verzonden: dinsdag 28 mei 2002 10:36
> > Aan: [EMAIL PROTECTED]
> > Onderwerp: Re: html2jpg
> >
> >
> > From: "Graaf, Edgar de (fin)" <[EMAIL PROTECTED]>
> >
> > > Hi,
> > >
> > > I want to make a jpg from a html. Is there someone who at least
converts
> > > html to svg?
> >
> > Are you sure that want html2jpg and not xml2jpg?
> > There is a sample in cocoon for performing: XML -> SVG -> JPG
generation.
> > For using HTML for this you should use Tidy to generate XHTML from it
and
> > then use an XHTML -> SVG -> JPG pipeline.
> >
> > Konstantin
> >
> > >
> > > thanks,
> > >
> > > Edgar
> > >
> > > ---------------------------------------------------------------------
> > > Please check that your question has not already been answered in the
> > > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> > >
> > > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > > For additional commands, e-mail: <[EMAIL PROTECTED]>
> > >
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
> > ---------------------------------------------------------------------
> > Please check that your question has not already been answered in the
> > FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
> >
> > To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> > For additional commands, e-mail: <[EMAIL PROTECTED]>
> >
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail: <[EMAIL PROTECTED]>
>


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>

Reply via email to