[jira] [Commented] (BATIK-1200) Rasterization fails with: ImagingOpException: Unable to transform src image

Jan Tošovský (JIRA) <[email protected]>
Newsgroups gmane.text.xml.batik.devel
Message-ID <[email protected]>
    [ https://issues.apache.org/jira/browse/BATIK-1200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16160321#comment-16160321 ] 

Jan Tošovský commented on BATIK-1200:
-------------------------------------

Most likely duplicate for https://issues.apache.org/jira/browse/BATIK-1106

> Rasterization fails with: ImagingOpException: Unable to transform src image
> ---------------------------------------------------------------------------
>
>                 Key: BATIK-1200
>                 URL: https://issues.apache.org/jira/browse/BATIK-1200
>             Project: Batik
>          Issue Type: Bug
>          Components: GVT
>    Affects Versions: 1.9
>         Environment: OS X 10.11.6 - Java 1.8.0_51
> Windows 7
>            Reporter: Jan Polák
>         Attachments: patrol-chopper-tail.svg
>
>
> Rasterizing attached svg file prints following stacktrace and produces blank image:
> {code}
> Converting patrol-chopper-tail.svg to ./patrol-chopper-tail.png ... java.awt.image.ImagingOpException: Unable to transform src image
> 	at java.awt.image.AffineTransformOp.filter(AffineTransformOp.java:285)
> 	at org.apache.batik.ext.awt.image.rendered.AffineRed.genRect(AffineRed.java:193)
> 	at org.apache.batik.ext.awt.image.rendered.AffineRed.copyData(AffineRed.java:109)
> 	at org.apache.batik.ext.awt.image.rendered.Any2sRGBRed.copyData(Any2sRGBRed.java:166)
> 	at org.apache.batik.ext.awt.image.rendered.FormatRed.copyData(FormatRed.java:116)
> 	at org.apache.batik.ext.awt.image.rendered.AbstractRed.getData(AbstractRed.java:526)
> 	at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(GraphicsUtil.java:264)
> 	at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(GraphicsUtil.java:455)
> 	at org.apache.batik.ext.awt.image.renderable.PadRable8Bit.paintRable(PadRable8Bit.java:135)
> 	at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(GraphicsUtil.java:440)
> 	at org.apache.batik.ext.awt.image.renderable.PadRable8Bit.paintRable(PadRable8Bit.java:135)
> 	at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(GraphicsUtil.java:440)
> 	at org.apache.batik.ext.awt.image.renderable.FilterChainRable8Bit.paintRable(FilterChainRable8Bit.java:251)
> 	at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(GraphicsUtil.java:440)
> 	at org.apache.batik.gvt.AbstractGraphicsNode.paint(AbstractGraphicsNode.java:549)
> 	at org.apache.batik.gvt.ShapeNode.paint(ShapeNode.java:143)
> 	at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(CompositeGraphicsNode.java:165)
> 	at org.apache.batik.gvt.AbstractGraphicsNode.paint(AbstractGraphicsNode.java:509)
> 	at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(CompositeGraphicsNode.java:165)
> 	at org.apache.batik.gvt.CanvasGraphicsNode.primitivePaint(CanvasGraphicsNode.java:159)
> 	at org.apache.batik.gvt.AbstractGraphicsNode.paint(AbstractGraphicsNode.java:509)
> 	at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(CompositeGraphicsNode.java:165)
> 	at org.apache.batik.gvt.AbstractGraphicsNode.paint(AbstractGraphicsNode.java:509)
> 	at org.apache.batik.gvt.renderer.MacRenderer.repaint(MacRenderer.java:361)
> 	at org.apache.batik.gvt.renderer.MacRenderer.repaint(MacRenderer.java:291)
> 	at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:111)
> 	at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142)
> 	at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:156)
> 	at org.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:1001)
> 	at org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:717)
> 	at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938)
> 	at org.apache.batik.apps.rasterizer.Main.main(Main.java:992)
> {code}
> I have encountered this problem from my own code, but the issue is reproducible using the official binary distribution, above output generated by command {{java -jar batik-rasterizer-1.9.jar patrol-chopper-tail.svg -d ./}}.
> All other tools (Inkscape, browsers, etc.) display the image correctly and all other svgs in my project (also created in Inkscape) rasterize correctly.



--
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.