[jira] [Commented] (BATIK-1202) "PNG URL is corrupt or unsupported variant" after upgrade 1.8 -> 1.9

"Murray Williams (JIRA)" <[email protected]>
Newsgroups gmane.text.xml.batik.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/BATIK-1202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16173133#comment-16173133 ] 

Murray Williams commented on BATIK-1202:
----------------------------------------

Yes, I know ;-)

This is the image that the stacktrace refers to (The URI "file:/foo/bar.png")

I assume it's an inline image in the SVG markup that we're asking batik to render.

> "PNG URL is corrupt or unsupported variant" after upgrade 1.8 -> 1.9
> --------------------------------------------------------------------
>
>                 Key: BATIK-1202
>                 URL: https://issues.apache.org/jira/browse/BATIK-1202
>             Project: Batik
>          Issue Type: Bug
>    Affects Versions: 1.9
>         Environment: Java 1.8 / Centos 6
>            Reporter: Murray Williams
>         Attachments: trafficlight_not_calculable.png
>
>
> Following upgrading the version of the batik library we are using from 1.8 to 1.9, we are now getting the following error when attempting to use the PNGTranscoder to generate a PNG image from SVG with an embedded 8-bit PNG image:
> {noformat}
> The URI "file:/foo/bar.png"
> on element <image> can't be opened because:
> PNG URL is corrupt or unsupported variant
>         at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:227) ~[batik-transcoder-1.9.jar:?]
>         at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:92) ~[batik-transcoder-1.9.jar:?]
>         at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142) ~[batik-transcoder-1.9.jar:?]
>         at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156) ~[batik-transcoder-1.9.jar:?]
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.