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

[PATCH] ImagingOpException when rasterizing simple SVG with filter into PDF

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Cannot Reproduce
    • 1.13
    • None
    • SVG Rasterizer
    • None
    • Win7, Oracle JDK 8

    Description

      While rasterizing simple SVG into PNG is fine, in case of PDF output I am getting the following error:
      java.awt.image.ImagingOpException: Unable to transform src image
      at java.awt.image.AffineTransformOp.filter(Unknown Source)
      at org.apache.batik.ext.awt.image.rendered.AffineRed.genRect(Unknown Source)
      at org.apache.batik.ext.awt.image.rendered.AffineRed.copyData(Unknown So
      urce)
      at org.apache.batik.ext.awt.image.rendered.PadRed.copyData(Unknown Sourc
      e)
      at org.apache.batik.ext.awt.image.rendered.CompositeRed.genRect(Unknown
      Source)
      at org.apache.batik.ext.awt.image.rendered.CompositeRed.copyData(Unknown
      Source)
      at org.apache.batik.ext.awt.image.rendered.Any2sRGBRed.copyData(Unknown
      Source)
      at org.apache.batik.ext.awt.image.rendered.AbstractRed.getData(Unknown S
      ource)
      at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown Source)

      at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown Source)

      at org.apache.batik.ext.awt.image.renderable.PadRable8Bit.paintRable(Unk
      nown Source)
      at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown Source)

      at org.apache.batik.ext.awt.image.renderable.PadRable8Bit.paintRable(Unk
      nown Source)
      at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown Source)

      at org.apache.batik.ext.awt.image.renderable.FilterChainRable8Bit.paintR
      able(Unknown Source)
      at org.apache.batik.ext.awt.image.GraphicsUtil.drawImage(Unknown Source)

      at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
      at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown Sou
      rce)
      at org.apache.batik.gvt.CanvasGraphicsNode.primitivePaint(Unknown Source
      )
      at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
      at org.apache.batik.gvt.CompositeGraphicsNode.primitivePaint(Unknown Sou
      rce)
      at org.apache.batik.gvt.AbstractGraphicsNode.paint(Unknown Source)
      at org.apache.fop.svg.PDFTranscoder.transcode(PDFTranscoder.java:183)
      at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(Unknown S
      ource)
      at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(Unknown S
      ource)
      at org.apache.batik.apps.rasterizer.SVGConverter.transcode(Unknown Sourc
      e)
      at org.apache.batik.apps.rasterizer.SVGConverter.execute(Unknown Source)

      at org.apache.batik.apps.rasterizer.Main.execute(Unknown Source)
      at org.apache.batik.apps.rasterizer.Main.main(Unknown Source)
      ... error (SVGConverter.error.while.rasterizing.file)

      Attachments

        1. BATIK-1106.patch
          0.7 kB
          Jan Tošovský
        2. line.png
          3 kB
          Jan Tošovský
        3. line.svg
          0.7 kB
          Jan Tošovský

        Activity

          People

            Unassigned Unassigned
            jan.tosovsky.cz Jan Tošovský
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: