Uploaded image for project: 'Batik'
  1. Batik
  2. BATIK-1200

Rasterization fails with: ImagingOpException: Unable to transform src image

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.9
    • Fix Version/s: None
    • Component/s: GVT
    • Labels:
      None
    • Environment:
      OS X 10.11.6 - Java 1.8.0_51
      Windows 7

      Description

      Rasterizing attached svg file prints following stacktrace and produces blank image:

      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)
      

      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.

        Attachments

        1. patrol-chopper-tail.svg
          3 kB
          Jan Polák

          Activity

            People

            • Assignee:
              ssteiner Simon Steiner
              Reporter:
              Darkyen Jan Polák
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: