You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Lincoln <li...@oracle.com> on 2006/08/10 07:55:04 UTC

png not appearing in SVG file

Hi all,

I am trying to generate an SVG file that contains a link to an external pgn
file. eg:
---
<image width="16" height="16" xlink:href="x.png"></image>
---

I can create an external link to a jpg image but not a png.

I added...

<map:match pattern="**.png">
  <map:read mime-type="image/png" src="{1}.png"/>
</map:match>

But could not find a serializer that was just png only svg2png. 

Any clues?

Linc



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


Re: png not appearing in SVG file

Posted by Mark Lundquist <ml...@wrinkledog.com>.
Hi Lincoln,

On Aug 9, 2006, at 10:55 PM, Lincoln wrote:

> Hi all,
>
> I am trying to generate an SVG file that contains a link to an 
> external pgn
> file. eg:
> ---
> <image width="16" height="16" xlink:href="x.png"></image>
> ---
>
> I can create an external link to a jpg image but not a png.

Why can't you embed an external PNG?  I guess you mean that when you 
do, the embedded image doesn't display?  From below it sounds like the 
external PNG itself is to be served by Cocoon as well (i.e., it's local 
to the site):

>
> I added...
>
> <map:match pattern="**.png">
>   <map:read mime-type="image/png" src="{1}.png"/>
> </map:match>

If you just request x.png by itself in a browser, what do you see?  
Nothing, error message, ....?

> But could not find a serializer that was just png only svg2png.

What would a "just png" serializer do?  Serializers are for converting 
SAX to... whatever.

Cheers,
—ml—


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