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

java.awt.image.ImagingOpException when using feTile over a PNG

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 1.7
    • Fix Version/s: None
    • Component/s: SVG Rasterizer
    • Labels:
      None
    • Environment:
      java version "1.6.0_65"
      Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
      Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)

      Description

      I can repro this both on server and locally.

      Use feTile in filter for a PNG <image>, and you'll get this exception.

      The image will be generated empty.

      java -jar ../lib/batik/batik-rasterizer.jar 5852da6b-3345-4e53-9472-1d8c397f45a6.svg
      About to transcode 1 SVG file(s)

      Converting 5852da6b-3345-4e53-9472-1d8c397f45a6.svg to 5852da6b-3345-4e53-9472-1d8c397f45a6.png ... java.awt.image.ImagingOpException: Unable to transform src image
      at java.awt.image.AffineTransformOp.filter(AffineTransformOp.java:267)
      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.GraphicsUtil.drawImage(GraphicsUtil.java:347)
      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.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.ImageNode.paint(ImageNode.java:71)
      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)

        Attachments

        1. bad.svg
          0.7 kB
          Dan Abramov

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              gaearon Dan Abramov
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated: