You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Tuan Luu <tu...@gmx.ch> on 2004/03/25 23:17:32 UTC
svg2jpeg Problem, Please help
hello
As long as I use the svgxml serializer everything is working fine, but when
I use the svg2jpeg I receive the error Message: Image cannot be displayed,
because it contains errors.
What am I missing?
here is the sitemap:
<map:pipeline>
<map:match pattern="getsvg.svg">
<map:generate src="sc/svg/opac.svg"/>
<map:serialize type="svgxml"/>
</map:match>
</map:pipeline>
and herre the file:
<?xml version="1.0" standalone="yes"?>
<svg width="300px" height="300px">
<g style="fill:#444">
<path d="M0,0v250h300v-250z"/>
</g>
<g style="stroke:#000; stroke-width:2; fill:#f00; fill-opacity:0.5">
<circle cx="100" cy="100" r="80"/>
</g>
<g style="stroke:#000; stroke-width:2; fill:#00f; fill-opacity:0.5">
<circle cx="200" cy="100" r="80"/>
</g>
<g style="stroke:#000; stroke-width:2; fill:#0f0; fill-opacity:0.5">
<circle cx="150" cy="150" r="80"/>
</g>
</svg>
--
+++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++
100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: svg2jpeg Problem, Please help
Posted by Jorg Heymans <jh...@domek.be>.
you should search the wiki on SVG serialization - you need a JVM switch
when running on linux (-Djava.awt.headless=true)
Check if the svg displays standalone in Batik, because that's the
renderer that is being used internally.
hth
Jorg
Tuan Luu wrote:
> hello
> As long as I use the svgxml serializer everything is working fine, but when
> I use the svg2jpeg I receive the error Message: Image cannot be displayed,
> because it contains errors.
>
> What am I missing?
>
> here is the sitemap:
> <map:pipeline>
> <map:match pattern="getsvg.svg">
> <map:generate src="sc/svg/opac.svg"/>
> <map:serialize type="svgxml"/>
> </map:match>
> </map:pipeline>
>
> and herre the file:
> <?xml version="1.0" standalone="yes"?>
>
> <svg width="300px" height="300px">
> <g style="fill:#444">
> <path d="M0,0v250h300v-250z"/>
> </g>
> <g style="stroke:#000; stroke-width:2; fill:#f00; fill-opacity:0.5">
> <circle cx="100" cy="100" r="80"/>
> </g>
> <g style="stroke:#000; stroke-width:2; fill:#00f; fill-opacity:0.5">
> <circle cx="200" cy="100" r="80"/>
> </g>
> <g style="stroke:#000; stroke-width:2; fill:#0f0; fill-opacity:0.5">
> <circle cx="150" cy="150" r="80"/>
> </g>
> </svg>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org
Re: svg2jpeg Problem, Please help
Posted by Oscar Picasso <os...@yahoo.com>.
It works in my configuration: cocoon-2.1.5-dev.
I have also changed the batik-1-5.jar to the lastest batik version (1.5.1)
to solve another unrelated bug.
(see http://nagoya.apache.org/bugzilla/show_bug.cgi?id=27986)
Oscar
--- Tuan Luu <tu...@gmx.ch> wrote:
> hello
> As long as I use the svgxml serializer everything is working fine, but when
> I use the svg2jpeg I receive the error Message: Image cannot be displayed,
> because it contains errors.
>
> What am I missing?
>
> here is the sitemap:
> <map:pipeline>
> <map:match pattern="getsvg.svg">
> <map:generate src="sc/svg/opac.svg"/>
> <map:serialize type="svgxml"/>
> </map:match>
> </map:pipeline>
>
> and herre the file:
> <?xml version="1.0" standalone="yes"?>
>
> <svg width="300px" height="300px">
> <g style="fill:#444">
> <path d="M0,0v250h300v-250z"/>
> </g>
> <g style="stroke:#000; stroke-width:2; fill:#f00; fill-opacity:0.5">
> <circle cx="100" cy="100" r="80"/>
> </g>
> <g style="stroke:#000; stroke-width:2; fill:#00f; fill-opacity:0.5">
> <circle cx="200" cy="100" r="80"/>
> </g>
> <g style="stroke:#000; stroke-width:2; fill:#0f0; fill-opacity:0.5">
> <circle cx="150" cy="150" r="80"/>
> </g>
> </svg>
>
>
> --
> +++ NEU bei GMX und erstmalig in Deutschland: T�V-gepr�fter Virenschutz +++
> 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
__________________________________
Do you Yahoo!?
Yahoo! Finance Tax Center - File online. File on time.
http://taxes.yahoo.com/filing.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org