Andrey created BATIK-1111:
-----------------------------

             Summary: SVG to PNG
                 Key: BATIK-1111
                 URL: https://issues.apache.org/jira/browse/BATIK-1111
             Project: Batik
          Issue Type: Bug
            Reporter: Andrey
            Priority: Blocker


I try transcode SVG to PNG
{code:title=Bar.java|borderStyle=solid}
  public byte[] svgToPNG(String svg) {
        TranscoderInput transcoderInput = new TranscoderInput(new 
StringReader(svg));
        ByteArrayOutputStream output = new ByteArrayOutputStream();
        TranscoderOutput transcoderOutput = new TranscoderOutput(output);
        PNGTranscoder pngTranscoder = new PNGTranscoder();
        try {
            pngTranscoder.transcode(transcoderInput, transcoderOutput);
        } catch (TranscoderException e) {
            LOGGER.error(e.getMessage(), e);
        }


        return output.toByteArray();
    }
{code}

In my SVG i have marker:
<image xlink:href="/img/mypath/..." ...></image>

But in transcode error:
org.apache.batik.transcoder.TranscoderException: null
Enclosed Exception:
null:0
The URI "http://localhost/img/mgm/71094611/71094691/2";
on element <image> can't be opened because:
The URI can't be opened:
Server returned HTTP response code: 500 for URL: 
http://localhost/img/mgm/71094611/71094691/2




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org
For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org

Reply via email to